Modify

Opened 10 years ago

Closed 10 years ago

#12606 closed defect (worksforme)

OAuth - internal server error

Reported by: bastiK Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: oauth Cc:

Description (last modified by Don-vip)

Not sure if it's a problem of the OSM server or related to my setup. OAuth authentication fails (both fully and semi-automatic method)

INFO: GET http://api.openstreetmap.org/oauth/request_token -> 301 (342 B)
DEBUG: RESPONSE: {Keep-Alive=[timeout=5, max=100], null=[HTTP/1.1 301 Moved Permanently], Server=[Apache/2.4.7 (Ubuntu)], Connection=[Keep-Alive], Content-Length=[342], Date=[Mon, 07 Mar 2016 19:34:47 GMT], Content-Type=[text/html; charset=iso-8859-1], Location=[http://www.openstreetmap.org/oauth/request_token]}
INFO: Download redirected to 'http://www.openstreetmap.org/oauth/request_token'
INFO: GET http://www.openstreetmap.org/oauth/request_token -> 500 (807 B)
DEBUG: RESPONSE: {Status=[500 Internal Server Error]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
  <img src="/assets/osm_logo.png" style="float:left; margin:10px">
  <div style="float:left;">
    <h1>Application error</h1>
    <p>The OpenStreetMap server encountered an unexpected condition that prevented it from fulfilling the request (HTTP 500)</p>
    <p>Feel free to <a href="http://wiki.openstreetmap.org/wiki/Contact" title="Various contact channels explained">contact</a> the OpenStreetMap community if your problem persists. Make a note of the exact URL / post data of your request.</p>
    <p>This may be a problem in our Ruby On Rails code. 500 occurs with exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code)</p>
  </div>
</body>
</html>

Btw., this kind of error message could be displayed to the user.

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-03-04 21:52:59 +0100 (Fri, 04 Mar 2016)
Build-Date:2016-03-04 22:51:10
Revision:9924
Relative:URL: ^/trunk

Identification: JOSM/1.5 (9924 en) Linux Ubuntu 15.10
Memory Usage: 293 MB / 1764 MB (194 MB allocated, but free)
Java version: 1.8.0_66-internal-b17, Oracle Corporation, OpenJDK 64-Bit Server VM
VM arguments: [-Djosm.restart=true, -Djosm.home=/home/user/.josm-latest, -Djava.net.useSystemProxies=true]
Program arguments: [--debug]

Another, probably unrelated problem is that I get no connection whatsoever with IPv6: As can be seen in Wireshark, the first TCP doesn't get acknowledged -> timeout.

Attachments (0)

Change History (3)

comment:1 by Don-vip, 10 years ago

Description: modified (diff)
Keywords: oauth added

comment:2 by simon04, 10 years ago

The correct OAuth request token URL would be https://www.openstreetmap.org/oauth/request_token (and not api.openstreetmap.org). Have you changed the default settings?

comment:3 by bastiK, 10 years ago

Resolution: worksforme
Status: newclosed

I changed https to http. Now, trying again with clean preferences, fully automatic method works correctly. (IPv6 is disabled)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.