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

Merge branch 'Force-IPV4-MetadataFactory' into 'master'

Update MetadataFactory.py to force IPV4 (not IPV6)

See merge request !371
parents ec715256 71ba3962
No related branches found
No related tags found
1 merge request!371Update MetadataFactory.py to force IPV4 (not IPV6)
Pipeline #532551 passed
......@@ -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"
......
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