You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We (NCEDC) recently started using https (from http) for FDSN webservice and this would make an error when obspy users will use Client("NCEDC") as shown at the bottom of the email. A simple tentative solution to work around this issue is to overwrite URL_MAPPINGS:
from obspy.clients.fdsn.header import URL_MAPPINGS
URL_MAPPINGS['NCEDC'] = "https://service.ncedc.org/"
We will post this at the front page of the NCEDC website so that users can get our data with obspy but eventually it would be great if obspy source code will use "https://service.ncedc.org/". Could you please pass this information to the obspy developer team?
Thank you so much again for providing obspy (and MSNoise indeed!) to the community. Please let me know if you have questions.
Code to Reproduce
fromobspy.clients.fdsnimportClientclient1=Client("NCEDC") # data from NCEDC
Error Traceback
client1=Client("NCEDC") # data from NCEDC---------------------------------------------------------------------------FDSNExceptionTraceback (mostrecentcalllast)
<ipython-input-113-75b7c9c20b1d>in<module>1fromobspy.clients.fdsnimportClient---->2client1=Client("NCEDC") # data from NCEDC~/opt/anaconda3/envs/netops/lib/python3.8/site-packages/obspy/clients/fdsn/client.pyin__init__(self, base_url, major_versions, user, password, user_agent, debug, timeout, service_mappings, force_redirect, eida_token, _discover_services)
261262if_discover_services:
-->263self._discover_services()
264else:
265self.services=DEFAULT_SERVICES~/opt/anaconda3/envs/netops/lib/python3.8/site-packages/obspy/clients/fdsn/client.pyin_discover_services(self)
1737"be due to a temporary service outage or an invalid FDSN "1738"service address."%self.base_url)
->1739raiseFDSNException(msg)
17401741# Cache.FDSNException: NoFDSNservicescouldbediscoveredat'http://service.ncedc.org'. ThiscouldbeduetoatemporaryserviceoutageoraninvalidFDSNserviceaddress.
ObsPy Version?
all
Operating System?
all
Python Version?
all
Installation Method?
No response
The text was updated successfully, but these errors were encountered:
Avoid duplicates
Bug Summary
Received by email:
Code to Reproduce
Error Traceback
ObsPy Version?
all
Operating System?
all
Python Version?
all
Installation Method?
No response
The text was updated successfully, but these errors were encountered: