diff --git a/geomagio/metadata/MetadataFactory.py b/geomagio/metadata/MetadataFactory.py index 6b052d333bcce6e8cf2b31b9923d9a9d109c799b..3e3dce3f7af86a0a434ff5755c4ee85354ee1279 100644 --- a/geomagio/metadata/MetadataFactory.py +++ b/geomagio/metadata/MetadataFactory.py @@ -10,6 +10,9 @@ from pydantic import TypeAdapter from .Metadata import Metadata from .MetadataQuery import MetadataQuery +# Force IPV4 in requests package +requests.packages.urllib3.util.connection.HAS_IPV6 = False + # Set the API host and URL for the Geomagnetic Metadata service GEOMAG_API_HOST = os.getenv("GEOMAG_API_HOST", "geomag.usgs.gov") GEOMAG_API_URL = f"https://{GEOMAG_API_HOST}/ws/secure/metadata"