Opened 12 years ago

Closed 12 years ago

#426 closed defect (fixed)

map bbox requests return 500

Reported by: dean@… Owned by: steve@…
Priority: major Milestone:
Component: api Version:
Keywords: Cc: d@…

Description

I get 500 ISE from various areas around me: /api/0.4/map?bbox=-1.3833850153720006,50.83270211272332,-1.1674186791710897,50.96849286845479

The error text is:

<h1>Application error</h1> <p>Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html</p>

I couldn't see any other obviosu bugs matching this issue.

Attachments (1)

noways.patch (568 bytes) - added by Tom Hughes 12 years ago.
Patch to stop 500 errors for areas with no ways

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 years ago by dean@…

I managed to get ethereal on this and have saved the output from the api at: http://personal.earlsoft.co.uk/osm/crash.htm

Enjoy :)

comment:2 Changed 12 years ago by dean@…

Both #429 and #439 have been marked as duplicates of this bug

comment:3 Changed 12 years ago by dean@…

Resolution: fixed
Status: newclosed

< SteveC> something in it was referencing segment 0 < SteveC> I removed all the references but it was still insisting

Works for me and the other two duplicates now :)

comment:4 Changed 12 years ago by Deelkar

Resolution: fixed
Status: closedreopened

comment:5 Changed 12 years ago by d@…

I've just recreated an instance of a non-descriptive 500 error with a bbox...

http://www.openstreetmap.org/api/0.4/map?bbox=121.452386,31.218613,121.476046,31.24118

I added a single place node in the centre of that bbox, tried to download, get 500... In other places I've had the same problem I've added a way nearby, uploaded that, then it all downloads OK... The way upload did fail part way through after uploading the nodes and some of the segments, at that point the bbox still gave a 500 error, once retried and the way was uploaded, then it worked fine...

Not sure if this is the same problem with the deelkar's bbox, but, does the API assume that if any data exists that a way must exist?

comment:6 Changed 12 years ago by d@…

Cc: d@… added

Changed 12 years ago by Tom Hughes

Attachment: noways.patch added

Patch to stop 500 errors for areas with no ways

comment:7 Changed 12 years ago by Tom Hughes

Resolution: fixed
Status: reopenedclosed

These URLs all work now.

Note: See TracTickets for help on using tickets.