I am calling distance_matrix from python using the openrouteservice package. Yesterday, I was able to call and receive data (distance matrix) for up to 30 sites. If I tried a larger number (e.g., 40), I ran into the “too big” error, which I understand.
However, today, I haven’t been able to get any calls to work, with even a small-ish list of 10 sites. I’ve tried multiple times with lists of various small sizes, and I keep getting a timeout error. The error stack is large, but the first error is this:
Traceback (most recent call last):
File “/Users/m.webb/opt/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 384, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “/Users/m.webb/opt/anaconda3/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 380, in _make_request
httplib_response = conn.getresponse()
File “/Users/m.webb/opt/anaconda3/lib/python3.7/http/client.py”, line 1336, in getresponse
response.begin()
File “/Users/m.webb/opt/anaconda3/lib/python3.7/http/client.py”, line 306, in begin
version, status, reason = self._read_status()
File “/Users/m.webb/opt/anaconda3/lib/python3.7/http/client.py”, line 267, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”)
File “/Users/m.webb/opt/anaconda3/lib/python3.7/socket.py”, line 589, in readinto
return self._sock.recv_into(b)
File “/Users/m.webb/opt/anaconda3/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py”, line 310, in recv_into
raise timeout(‘The read operation timed out’)
socket.timeout: The read operation timed out
with a few more exceptions. The final listed exception is:
openrouteservice.exceptions.Timeout
I was able to get the API example on the website to work (https://openrouteservice.org/dev/#/api-docs/v2/matrix/{profile}/post), but it took 28 seconds to respond, which seems awfully slow for such a simple request.
Is there an issue with the server on openrouteservice.org at this time? The status page shows nothing.
My dashboard says all my privileges are green, with an essentially full quota.