Modify

Opened 6 years ago

Last modified 6 years ago

#11652 new enhancement

Give better error message on known failure of OSM server

Reported by: mkoniecz Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Use download as OSM API is reporting failure

What is the expected result?

Error message will make clear that Internet works and OSM API is reporting failure. Something like "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later".

What happens instead?

"Communication with the OSM server 'https://api.openstreetmap.org/api/0.6/' timed out. Please retry later." message appears

Please provide any additional information below. Attach a screenshot if possible.

INFO: GET https://api.openstreetmap.org/api/0.6/map?bbox=19.9340272,50.0493442,19.9347085,50.0498402
ERROR: org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Body=<<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Unavailable</title>
</head><body>
<h1>Service Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at api.openstreetmap.org Port 443</address>
</body></html>>
org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Body=<<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Unavailable</title>
</head><body>
<h1>Service Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at api.openstreetmap.org Port 443</address>
</body></html>>
	at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:195)
	at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:104)
	at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:68)
	at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:51)
	at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxDownloader.java:147)
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.parseDataSet(DownloadOsmTask.java:306)
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.realRun(DownloadOsmTask.java:314)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:161)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Revision: 8561
Repository Root: http://josm.openstreetmap.de/svn
Relative URL: ^/trunk
Last Changed Author: Klumbumbus
Last Changed Date: 2015-07-03 00:26:27 +0200 (Fri, 03 Jul 2015)
Build-Date: 2015-07-03 01:32:08
URL: http://josm.openstreetmap.de/svn/trunk
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Rev: 8561

Identification: JOSM/1.5 (8561 en) Linux Ubuntu 14.04.2 LTS
Memory Usage: 372 MB / 889 MB (239 MB allocated, but free)
Java version: 1.8.0_45, Oracle Corporation, Java HotSpot(TM) Server VM

Plugins:
- FastDraw (31265)
- OpeningHoursEditor (31241)
- PicLayer (31241)
- buildings_tools (31241)
- continuosDownload (1413902943)
- geotools (31126)
- jts (31126)
- log4j (31231)
- measurement (31289)
- undelete (31241)
- wikipedia (31241)

Last errors/warnings:
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Body=<<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Body=<<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=503, Error Body=<<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by mdk

This is problematic. When the server is not reachable, then the server can't tell the reason why he isn't reachable. Even if the reason (like maintanace) is known, the server could not tell the reason, why he is down. In this case only an other service could give the requested answer. If JOSM get a server failure (5xx) from api.openstreetmap.org, I think today three servers must fail:

Name:	api.openstreetmap.org
Address: 193.63.75.103
Name:	api.openstreetmap.org
Address: 193.63.75.99
Name:	api.openstreetmap.org
Address: 193.63.75.100

before the request fails. Or does JOSM fails after the first try?

The easiest way may be that JOSM asks in this case for a special Wiki page (like http://wiki.openstreetmap.org/wiki/Platform_Status), where hopefully the reason for the server failure is documented.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to mkoniecz
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.