Skip to content
Snippets Groups Projects
Commit 71ba3962 authored by Erin (Josh) Rigler's avatar Erin (Josh) Rigler
Browse files

Update MetadataFactory.py to force IPV4 (not IPV6)

parent 69254ed8
No related branches found
No related tags found
1 merge request!371Update MetadataFactory.py to force IPV4 (not IPV6)
...@@ -10,6 +10,9 @@ from pydantic import TypeAdapter ...@@ -10,6 +10,9 @@ from pydantic import TypeAdapter
from .Metadata import Metadata from .Metadata import Metadata
from .MetadataQuery import MetadataQuery 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 # Set the API host and URL for the Geomagnetic Metadata service
GEOMAG_API_HOST = os.getenv("GEOMAG_API_HOST", "geomag.usgs.gov") GEOMAG_API_HOST = os.getenv("GEOMAG_API_HOST", "geomag.usgs.gov")
GEOMAG_API_URL = f"https://{GEOMAG_API_HOST}/ws/secure/metadata" GEOMAG_API_URL = f"https://{GEOMAG_API_HOST}/ws/secure/metadata"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment