Skip to content

Change default event request server#31

Merged
anowacki merged 2 commits intomasterfrom
change-event-server
Mar 19, 2026
Merged

Change default event request server#31
anowacki merged 2 commits intomasterfrom
change-event-server

Conversation

@anowacki
Copy link
Owner

Because Earthscope are removing their FDSNEvent service, change to
use a different default server (USGS).

  • Update default events request server
  • Do not warn about charset declarations in content-type HTTP headers

From 2026-06-01, the Earthscope/IRIS FDSNEvent server will no longer
operate.  Therefore, update the default server to point to the USGS's
https://earthquake.usgs.gov instead (short name `"NEIC"`).  This is
preferred over the ISC as a default as the USGS server response times
are typically quicker.

Note that the USGS server's default value for `starttime` is only 30
days before present, so update the default value for the `FDSNEvent`
request created by `get_events` to 1800, in order to work around this,
as this otherwise would be a change from the previous SeisRequests
behaviour.

Update tests to reflect the different catalogue used by default in NEIC
requests.
Servers often return a `charset=utf-8` note in the `Content-Type`
header after the actual content type, but this is harmless (and even
helpful).  Remove this part of the header before checking for compliant
content types.
@anowacki anowacki force-pushed the change-event-server branch from c2aadaa to 0e9ca7a Compare March 19, 2026 16:32
@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.00%. Comparing base (de63832) to head (0e9ca7a).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
+ Coverage   89.98%   90.00%   +0.01%     
==========================================
  Files           7        7              
  Lines         619      620       +1     
==========================================
+ Hits          557      558       +1     
  Misses         62       62              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@anowacki anowacki merged commit f849840 into master Mar 19, 2026
9 checks passed
@anowacki anowacki deleted the change-event-server branch March 19, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant