Modify

Opened 13 years ago

Closed 8 years ago

#7804 closed defect (irreproducible)

Useless(?) OAuth error

Reported by: malenki Owned by: malenki
Priority: minor Milestone:
Component: Core Version:
Keywords: Cc:

Description (last modified by malenki)

I keep getting occasionally an error message that OAuth didn't work after my edits were uploaded and the changeset got closed.

Following edits and uploads work fine, too.

What is the point in this?

The cli output starting with creating the changeset:

PUT http://api.openstreetmap.org/api/0.6/changeset/create... OK
POST http://api.openstreetmap.org/api/0.6/changeset/11970277/upload... OK
PUT http://api.openstreetmap.org/api/0.6/changeset/11970277/close... Authorization Required
Error body: Couldn't authenticate you

org.openstreetmap.josm.io.OsmApiException: ResponseCode=401, Error Body=<Couldnt authenticate you>
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:661)
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:534)
	at org.openstreetmap.josm.io.OsmApi.closeChangeset(OsmApi.java:448)
	at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:295)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:82)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Attachments (1)

2012-06-21_180829_scr_josm_auth_error_anon.jpg (34.4 KB ) - added by malenki 13 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by malenki, 13 years ago

Priority: normalminor

comment:2 by malenki, 13 years ago

Description: modified (diff)

comment:3 by stoecker, 13 years ago

Owner: changed from team to malenki
Status: newneedinfo

Hmm. Same OAuth works next time?

I remember another case, where also the close request was different. Compared to the others, the close request is very short, so there is a difference.

Do you have a proxy in between?

Can you try to get a wireshark log of such a failing session?

Last edited 13 years ago by stoecker (previous) (diff)

comment:4 by malenki, 13 years ago

Hmm. Same OAuth works next time?

Yes

Do you have a proxy in between?

No

Can you try to get a wireshark log of such a failing session?

That is less likely. This message shows up ~each 3 days. So I'd have to monitor all JOSM sessions until this error shows up once more...

comment:5 by stoecker, 13 years ago

Ticket #7871 has been marked as a duplicate of this ticket.

comment:6 by stoecker, 13 years ago

Resolution: irreproducible
Status: needinfoclosed

comment:7 by Don-vip, 13 years ago

Resolution: irreproducible
Status: closedreopened

Just got it when uploading changeset 13341592.
It's very disturbing as you may think the changeset has not been uploaded !

PUT http://api.openstreetmap.org/api/0.6/changeset/create... OK
POST http://api.openstreetmap.org/api/0.6/changeset/13341592/upload... OK
PUT http://api.openstreetmap.org/api/0.6/changeset/13341592/close... Authorization Required
Error body: Couldn't authenticate you

org.openstreetmap.josm.io.OsmApiException: ResponseCode=401, Error Body=<Couldnt authenticate you>
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:680)
	at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:557)
	at org.openstreetmap.josm.io.OsmApi.closeChangeset(OsmApi.java:471)
	at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:296)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:82)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:145)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

comment:8 by Don-vip, 8 years ago

Resolution: irreproducible
Status: reopenedclosed

Didn't reproduce it in the last 5 years, must be gone.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain malenki.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.