Overpass-API icon indicating copy to clipboard operation
Overpass-API copied to clipboard

Inconsistency of http://overpass-api.de/api/status

Open zstadler opened this issue 4 years ago • 4 comments

It seems like http://overpass-api.de/api/status is sometimes inconsistent with my activity and the servers responses. For example, the server may issue

Error: runtime error: […] Please check /api/status for the quota of your IP address.

while the status page shows

2 slots available now.

in a different tab.

In other occasions, a long query may be running in a separate tab and the status page shows no activity.

zstadler avatar Jun 22 '20 11:06 zstadler

overpass-api.de is a DNS alias for two servers lz4.overpass-api.de and z.overpass-api.de. Depending on which of the two servers gets selected by your client in a round robin fashion, your query and the /api/status call might end up on different servers. There isn't much you can do about it, unless you direct your /api/status query to the same server that returned the error mesage.

mmd-osm avatar Jun 22 '20 11:06 mmd-osm

From a user perspective, the reference to /api/status in the error message is not very useful. Perhaps the specific server can be spelled-out in the error message:

Error: runtime error: […] Please check https://lz4.overpass-api.de/api/status for the quota of your IP address.

Another possible approach, given the DNS alias, is to have a single user quota management mechanism for all servers.

zstadler avatar Jun 22 '20 13:06 zstadler

a single user quota management mechanism for all servers

I think that's not feasible at this time, as both servers do not know anything about each other.

mmd-osm avatar Jun 22 '20 14:06 mmd-osm

And what about my simpler proposal?

Perhaps the specific server can be spelled-out in the error message:

Error: runtime error: […] Please check https://lz4.overpass-api.de/api/status for the quota of your IP address.

zstadler avatar Jun 22 '20 14:06 zstadler

Nowadays, the server name is displayed in the /api/status call.

drolbr avatar May 22 '23 11:05 drolbr