Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Errors when getting large relation history #4692

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Errors when getting large relation history #4692

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: don-vip
[Submitted to the original trac issue database at 3.20pm, Friday, 16th November 2012]

When requesting this history:

GET http://api.openstreetmap.org/api/0.6/relation/20773/history

After a long time, I received first the following HTTP 500 error:

<h1>Internal Server Error</h1>
<p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
<p>Please contact the server administrator, webmaster[at]openstreetmap.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>
<p>More information about this error may be available in the server error log.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at api.openstreetmap.org Port 80</address>

I tried again and had this time a memory error:

NoMemoryError: failed to allocate memory
@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 12.24pm, Saturday, 17th November 2012]

Not much we can do about this I'm afraid - some relations are so massive it's pretty much impossible to the ruby API to return them especially when you ask for the full history.

Hopefully one day this will all be moved to cgimap and there will be a better chance of being able to fetch it.

@openstreetmap-trac
Copy link
Author

Author: don-vip
[Added to the original trac issue at 5.09pm, Saturday, 17th November 2012]

So currently, the only way to consult history of such relations is to iterate on each version until the API returns a version not found ?

Is there hope to see some of my requests [1] concerning summarized history data implemented in the next API ?

[1] http://wiki.openstreetmap.org/wiki/API_v0.7#Improve_history_requests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant