Dear Sir/Madam,
I am recently trying to download continuous seismic recordings from stations in Oklahoma by using Obspy. I frequently get the following error massage.
Traceback (most recent call last):
File "pyexeDOWNload.py", line 289, in <module>
ierr = main_body()
File "pyexeDOWNload.py", line 40, in main_body
ierr = obspy_stationxml(epath,firsttime,finaltime,savexml=False)
File "pyexeDOWNload.py", line 199, in obspy_stationxml
client = Client(iclient)
File "/home/sxz161730/Application/anaconda3/envs/obspy/lib/python3.7/site-packages/obspy/clients/fdsn/client.py", line 263, in __init__
self._discover_services()
File "/home/sxz161730/Application/anaconda3/envs/obspy/lib/python3.7/site-packages/obspy/clients/fdsn/client.py", line 1549, in _discover_services
raise FDSNException(msg)
obspy.clients.fdsn.header.FDSNException: No FDSN services could be discovered at 'http://service.iris.edu'. This could be due to a temporary service outage or an invalid FDSN service address
I have to submit the job many times to successfully connect with the IRISDMC, and during the running, I frequently get an error like 'ERROR: Client 'IRIS' - Failed getting availability: Unknown Error (URLError): <urlopen error timed out>'.
It is strange that I do not need to do any change on my code. Just submit the job again and again, and if luck enough, it works for one time. I am not sure if it is my network issue or some connection problem from IRISDMC?
I come here for some suggestions because I have submitted the request many times to collect all the available data I need, which should be very easy with Obspy. I appreciate if there is any suggestions that can help me solve this strange problem.
Best regards,
Shuo
I am recently trying to download continuous seismic recordings from stations in Oklahoma by using Obspy. I frequently get the following error massage.
Traceback (most recent call last):
File "pyexeDOWNload.py", line 289, in <module>
ierr = main_body()
File "pyexeDOWNload.py", line 40, in main_body
ierr = obspy_stationxml(epath,firsttime,finaltime,savexml=False)
File "pyexeDOWNload.py", line 199, in obspy_stationxml
client = Client(iclient)
File "/home/sxz161730/Application/anaconda3/envs/obspy/lib/python3.7/site-packages/obspy/clients/fdsn/client.py", line 263, in __init__
self._discover_services()
File "/home/sxz161730/Application/anaconda3/envs/obspy/lib/python3.7/site-packages/obspy/clients/fdsn/client.py", line 1549, in _discover_services
raise FDSNException(msg)
obspy.clients.fdsn.header.FDSNException: No FDSN services could be discovered at 'http://service.iris.edu'. This could be due to a temporary service outage or an invalid FDSN service address
I have to submit the job many times to successfully connect with the IRISDMC, and during the running, I frequently get an error like 'ERROR: Client 'IRIS' - Failed getting availability: Unknown Error (URLError): <urlopen error timed out>'.
It is strange that I do not need to do any change on my code. Just submit the job again and again, and if luck enough, it works for one time. I am not sure if it is my network issue or some connection problem from IRISDMC?
I come here for some suggestions because I have submitted the request many times to collect all the available data I need, which should be very easy with Obspy. I appreciate if there is any suggestions that can help me solve this strange problem.
Best regards,
Shuo
-
Hello Shuo,
That's an odd error, I think the service discovery should return fairly quickly.
I guess the first question would be when this happened -- there were a few scaling issues that came up recently (around 18 October) that might have caused this sort of error. I believe these were resolved, but if you're still seeing this behavior it's possible that there is a lingering issue here.
I'm pretty sure it's accessing these URLs for discovery; if the cause is some network routing issue you might see it when accessing these manually:
http://service.iris.edu/fdsnws/dataselect/1/application.wadl
http://service.iris.edu/fdsnws/station/1/application.wadl
http://service.iris.edu/fdsnws/event/1/application.wadl
I also saw this note on the ObsPy Client() constructor:
:param _discover_services: By default the client will query information
I'm not sure what cases could cause a heavy load on the service, but you might try instantiating the client like
about the FDSN endpoint when it is instantiated. In certain cases,
this may place a heavy load on the FDSN service provider. If set
to ``False``, no service discovery is performed and default
parameter support is assumed. This parameter is experimental and
will likely be removed in the future.
Client(iclient, _discover_services=False)
(although based on their comments this seems like something that will likely break in the future if they do remove it.)
I hope this helps!
Cheers,
Adam
----------------------
Adam Clark
Web Application Developer
IRIS Data Management Center
adam<at>iris.washington.edu
On Nov 2, 2021, at 11:58 AM, Zhang, Shuo (via IRIS) <data-request-help-bounce<at>lists.ds.iris.edu> wrote:
Dear Sir/Madam,
I am recently trying to download continuous seismic recordings from stations in Oklahoma by using Obspy. I frequently get the following error massage.
Traceback (most recent call last):
File "pyexeDOWNload.py", line 289, in <module>
ierr = main_body()
File "pyexeDOWNload.py", line 40, in main_body
ierr = obspy_stationxml(epath,firsttime,finaltime,savexml=False)
File "pyexeDOWNload.py", line 199, in obspy_stationxml
client = Client(iclient)
File "/home/sxz161730/Application/anaconda3/envs/obspy/lib/python3.7/site-packages/obspy/clients/fdsn/client.py", line 263, in __init__
self._discover_services()
File "/home/sxz161730/Application/anaconda3/envs/obspy/lib/python3.7/site-packages/obspy/clients/fdsn/client.py", line 1549, in _discover_services
raise FDSNException(msg)
obspy.clients.fdsn.header.FDSNException: No FDSN services could be discovered at 'http://service.iris.edu http://service.iris.edu/'. This could be due to a temporary service outage or an invalid FDSN service address
I have to submit the job many times to successfully connect with the IRISDMC, and during the running, I frequently get an error like ‘ERROR: Client 'IRIS' - Failed getting availability: Unknown Error (URLError): <urlopen error timed out>’.
It is strange that I do not need to do any change on my code. Just submit the job again and again, and if luck enough, it works for one time. I am not sure if it is my network issue or some connection problem from IRISDMC?
I come here for some suggestions because I have submitted the request many times to collect all the available data I need, which should be very easy with Obspy. I appreciate if there is any suggestions that can help me solve this strange problem.
Best regards,
Shuo
----------------------
Data Request Help
Topic home: http://ds.iris.edu/message-center/topic/data-request-help/ | Unsubscribe: data-request-help-unsubscribe<at>lists.ds.iris.edu <data-request-help-unsubscribe<at>lists.ds.iris.edu>
Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
Update subscription preferences at http://ds.iris.edu/account/profile/