Modify

Opened 2 years ago

Closed 12 months ago

#5918 closed defect (needinfo)

"Bad Request" when uploading changes

Reported by: wiml@… Owned by: wiml@…
Priority: normal Component: Core
Version: Keywords:
Cc:

Description (last modified by skyper)

When trying to upload the deletion of the duplicated objects I uploaded while working with #5917, I got a "bad request" error. Here's what showed up on josm's stdout:

GET http://api.openstreetmap.org/api/0.6/changesets?user=223681&open=true
PUT http://api.openstreetmap.org/api/0.6/changeset/7224101... OK
POST http://api.openstreetmap.org/api/0.6/changeset/7224101/upload... Bad Request
Error body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.2.14 (Ubuntu) Server at api.openstreetmap.org Port 80</address>
</body></html>

org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Body=<<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.2.14 (Ubuntu) Server at api.openstreetmap.org Port 80</address>
</body></html>>
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:596)
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:479)
	at org.openstreetmap.josm.io.OsmApi.uploadDiff(OsmApi.java:429)
	at org.openstreetmap.josm.io.OsmServerWriter.uploadChangesInChunks(OsmServerWriter.java:163)
	at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:205)
	at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:236)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:83)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:129)
	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:680)

Attachments (0)

Change History (4)

comment:1 Changed 2 years ago by anonymous

This was with josm r3867. I tried again with r3854 and r3788 and got the same error. ---wiml

comment:2 Changed 2 years ago by bastiK

Please save as and attach the file.

comment:3 Changed 14 months ago by anonymous

  • Owner changed from team to wiml@…
  • Status changed from new to needinfo

comment:4 Changed 12 months ago by skyper

  • Description modified (diff)
  • Resolution set to needinfo
  • Status changed from needinfo to closed

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.