detectSupportedPlatform tries to fetch data from a URL. This can take a long time on hosts that do not have access to that host:
detectSupportedPlatform calls isRunningOnGcp():
isRunningOnGcp() calls GcpMetadataConfig#getProjectId()
GcpMetadataConfig#getProjectId() calls getAttribute(String)
getAttribute tries to fetch data from http://metadata.google.internal/computeMetadata/v1/
The latter can potentially block for a long time. Would it maybe be better to add a timeout to that call?
Background: googleapis/java-spanner-jdbc#2250