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

Errors when getting large relation history #4692

Closed

Description

@openstreetmap-trac

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

Activity

  1. openstreetmap-trac commented on Jul 23, 2021

    @openstreetmap-trac
    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.

  2. openstreetmap-trac commented on Jul 23, 2021

    @openstreetmap-trac
    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions