Opened 5 years ago

Last modified 5 years ago

#5194 new defect

HTTP Error 500

Reported by: skyper Owned by: rails-dev@…
Priority: minor Milestone:
Component: api Version:
Keywords: error 500 Cc:

Description

Using JOSM with ssl and its notes plugin with plain http connections I got following warning when requesting notes.

See JOSM #10202.

WARNING: org.openstreetmap.josm.io.OsmApiException: ResponseCode=500, Error Body=<<!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>>
org.openstreetmap.josm.io.OsmApiException: ResponseCode=500, Error Body=<<!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>>

Change History (3)

comment:1 Changed 5 years ago by Tom Hughes

Works for me from the command line. Probably JOSM is doing something silly.

comment:2 Changed 5 years ago by Tom Hughes

I can't find any sign of your failing request in the logs - did you do it some time before you submitted the JOSM ticket? Certainly the URL in the JOSM ticket is working for me.

comment:3 in reply to:  2 Changed 5 years ago by skyper

Replying to TomH:

Damn, did not get any mail.

I can't find any sign of your failing request in the logs - did you do it some time before you submitted the JOSM ticket? Certainly the URL in the JOSM ticket is working for me.

Yes around three hours earlier. Have a look at my changesets.

Might there be a problem with encrypted and unencrypted connections at the same time ?

The notes plugin does not use the authentication method from core so far.

Note: See TracTickets for help on using tickets.