Modify

Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#368 closed defect (fixed)

java.io.IOException: Server returned HTTP response code: 403

Reported by: anonymous Owned by: imi
Priority: major Milestone:
Component: unspecified Version: latest
Keywords: Cc:

Description

download: http://www.openstreetmap.org/api/0.4/map?bbox=4.909933871224165,52.349
70222575517,4.924934128775835,52.364147774244834
got return: 403
java.io.IOException: Server returned HTTP response code: 403 for URL: http://www
.openstreetmap.org/api/0.4/map?bbox=4.909933871224165,52.34970222575517,4.924934
128775835,52.364147774244834

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

orAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

onstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.j

ava:1227)

at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpU

RLConnection.java:1221)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon

nection.java:910)

at org.openstreetmap.josm.io.ProgressInputStream.<init>(ProgressInputStr

eam.java:32)

at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerRea

der.java:52)

at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxD

ownloader.java:100)

at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$Task.rea

lRun(DownloadOsmTask.java:37)

at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.

java:84)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec

utor.java:650)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

.java:675)

at java.lang.Thread.run(Thread.java:595)

Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:

http://www.openstreetmap.org/api/0.4/map?bbox=4.909933871224165,52.349702225755

17,4.924934128775835,52.364147774244834

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon

nection.java:1174)

at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367

)

at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerRea

der.java:46)

... 6 more

Attachments (0)

Change History (3)

comment:1 by Gabriel Ebner <ge@…>, 17 years ago

It looks like you're using an old JOSM version that still tries to connect to the old 0.4 API. (We upgraded the API yesterday to version 0.5 and introduced incompatible changes in the data model, like removing segments and adding support for a way to group existing objects, called relations)

Could you please a try the new JOSM version from http://josm.openstreetmap.de/download/josm-latest.jar ?

comment:2 by Gabriel Ebner <ge@…>, 17 years ago

Resolution: fixed
Status: newclosed

No comment within a week, apparently updating JOSM fixed that problem. If not, just reopen this bug.

comment:3 by Leigh, 16 years ago

Just a quick note to confirm that this solution seems to have solved the issue for me.

Modify Ticket

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