Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

JMapViewer: downloading OSM failed #5433

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

JMapViewer: downloading OSM failed #5433

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: justik
[Submitted to the original trac issue database at 4.44pm, Monday, 21st November 2016]

Since 2011/11/29 the jmapviewer library suddenly cannot load the Open Street map from Internet. The following errors occur:

...
Failed loading https://a.tile.openstreetmap.org/19/466960/400380.png: class java.net.ConnectException: Connection timed out: connect
Failed loading https://c.tile.openstreetmap.org/19/466959/400380.png: class java.net.ConnectException: Connection timed out: connect
Failed loading https://b.tile.openstreetmap.org/19/466958/400380.png: class java.net.ConnectException: Connection timed out: connect
...

However, the ping to

ping b.tile.openstreetmap.org

is successful:

Pinging germany.tile.openstreetmap.org [81.7.11.83] with 32 bytes of data:
Reply from 81.7.11.83: bytes=32 time=32ms TTL=50

The file

https://a.tile.openstreetmap.org/19/466960/400380.png

can be downloaded using the web browser, but the response is surprisingly slow (3-4 seconds).

Changing the values of PATTERN in OSMTileSource.java file from

private static final String PATTERN = "https://%s.tile.openstreetmap.org";
private static final String[] SERVER = {"a", "b", "c"};

to

private static final String PATTERN = "https://London.tile.openstreetmap.org"

works well. Maybe, is there any geoDNS problem?

@openstreetmap-trac
Copy link
Author

Author: justik
[Added to the original trac issue at 6.08pm, Wednesday, 30th November 2016]

Correction: since 2016/11/29...

@openstreetmap-trac
Copy link
Author

Author: pnorman
[Added to the original trac issue at 10.47am, Tuesday, 3rd January 2017]

This is an operational issue, and if there ever was a problem, it's long since gone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant