# Arclink requests exceeded

**URL:** <https://discourse.obspy.org/t/arclink-requests-exceeded/626>\
**Category:** Users Mailing List Archive\
**Tags:** archive\
**Created:** [March 21, 2017, 3:38pm UTC](https://discourse.obspy.org/t/arclink-requests-exceeded/626 "2017-03-21T15:38:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_Fuchs](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/f/858c86/32.png) [@Florian\_Fuchs](https://discourse.obspy.org/u/Florian_Fuchs)\
**Post date:** [March 21, 2017, 3:38pm UTC](https://discourse.obspy.org/t/arclink-requests-exceeded/626/1 "2017-03-21T15:38:12Z")

</div>

Dear all,

I am using a script built around the Arclink implementation to download 24h long data pieces for several stations from EIDA. Basically I run a loop through a list of stations and a set of days for which I want the data and for each station/day combination I execute the .get\_waveforms() function.

It generally works well, however, sometimes I run into the following issue, which I do not fully understand:

error:  
‘max\_status\_requests () exceeded - breaking current request loop’

I am no expert on how the Arclink protocol works … could please someone explain the meaning of this error message? Does it mean the “compiling” of the data for download on EIDA side takes too long? Do I fire too many download requests in too short amount of time?

Thanks a lot and best regards,  
Florian Fuchs

---

<div class="post-metadata">

**Author:** ![megies](https://discourse.obspy.org/user_avatar/discourse.obspy.org/megies/32/9_2.png) [@megies](https://discourse.obspy.org/u/megies)\
**Post date:** [March 21, 2017, 4:10pm UTC](https://discourse.obspy.org/t/arclink-requests-exceeded/626/2 "2017-03-21T16:10:33Z")

</div>

Hi Florian,

when doing a request to the server, the arclink client periodically  
(roughly every "status\_delay" seconds) checks if the query results are  
ready at the server, but it stops when hitting "max\_status\_requests".

By default this is set to 50 requests, every 0.5 seconds, so it roughly  
stops if query results are not ready after roughly 25 seconds.

You can either set a higher max\_status\_requests..

> > > client = Client(...)  
> > > client.max\_status\_requests = 200

.. or increase the poll interval:

> > > client = Client(..., status\_delay=1.5)

See the respective while/break loop in the source code for details:

[https://github.com/obspy/obspy/blob/1.0.3/obspy/clients/arclink/client.py#L295-L313](https://github.com/obspy/obspy/blob/1.0.3/obspy/clients/arclink/client.py#L295-L313)

hope it helps,

T

---

<div class="post-metadata">

**Author:** ![Florian\_Fuchs](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/f/858c86/32.png) [@Florian\_Fuchs](https://discourse.obspy.org/u/Florian_Fuchs)\
**Post date:** [March 21, 2017, 4:14pm UTC](https://discourse.obspy.org/t/arclink-requests-exceeded/626/3 "2017-03-21T16:14:05Z")

</div>

Thank you Tobias for the quick reply. I’ll try what you suggest and see if it helps.

Best,  
Florian
