Modify

Opened 4 years ago

Closed 4 years ago

#3053 closed defect (fixed)

missing api handler for "Internal Server Error"

Reported by: phobie Owned by: team
Priority: minor Component: Core
Version: Keywords: api upload failed internal server error
Cc:

Description

JOSM 1823

On a upload the osm-server replied with "Internal Server Error".
JOSM should handle this "in some way".

BTW. The changeset have been closed successful this time...

PUT http://api.openstreetmap.org/api/0.6/changeset/1919846/close... Internal Server Error
org.openstreetmap.josm.io.OsmTransferCancelledException
        at org.openstreetmap.josm.io.OsmApi.sleepAndListen(OsmApi.java:360)
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:424)
        at org.openstreetmap.josm.io.OsmApi.stopChangeset(OsmApi.java:304)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:115)
        at org.openstreetmap.josm.actions.UploadAction$1UploadDiffTask.realRun(UploadAction.java:227)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:62)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:116)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
2009-07-24 00:05:02 [com.innovant.josm.plugin.routing.gui.RoutingPreferenceDialog] DEBUG - Default preferences already exist.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by phobie

  • Summary changed from missong api handler for "Internal Server Error" to missing api handler for "Internal Server Error"

comment:2 Changed 4 years ago by Gubaer

  • Resolution set to fixed
  • Status changed from new to closed

JOSM already handles this case. It waits a short time (actually 10s which seems quite long) and tries again. It does so five times.

From the messages on the console this is not immediately clear. I therefore added some logging statements to OsmApi.

See r1859.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.