Modify

Opened 6 days ago

Closed 6 days ago

#24113 closed defect (irreproducible)

Unreliable down-, and upload data from/to api.openstreetmap.com

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

Description

What steps will reproduce the problem?

  1. download one relation via expert mode "download from overpass api"
  2. right-click one the relation and pick one of the three download option

What is the expected result?

I would expect the members to be downloaded.

What happens instead?

I get a Network exception.
"Failed to open a connection to the remote server 'https://api.openstreetmap.org/api/0.6/relation/3641049/full'. Please check your internet connection"

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

This might be a problem with my isp (Vodafone Cable) set up.
I use the vodafone modem in bridge mode (ipv4 only, no ipv6) connected to a fritzbox, all wired.
If I use my phone as a hot spot, I don't have that problem.
Also, sometimes I don't not get a error, but with more data (entire relation) the problem seem to occur more often. Also uploads keep failing a lot, causing duplicated data.

Using the failed request ("https://api.openstreetmap.org/api/0.6/relation/3641049/full") in a browser (firefox, chrome) works fine, too.

Any help is appreciated.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2025-01-02 12:51:21 +0100 (Thu, 02 Jan 2025)
Revision:19277
Build-Date:2025-01-04 02:30:34
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (19277 en) Windows 11 64-Bit
OS Build number: Windows 10 Home 23H2 (22631)
Memory Usage: 348 MB / 8100 MB (149 MB allocated, but free)
Java version: 21.0.5+11-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920x1200x32bpp@165Hz (scaling 1.25×1.25) \Display1 1680x1050x32bpp@59Hz (scaling 1.00×1.00) \Display2 1680x1050x32bpp@59Hz (scaling 1.00×1.00)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: Cp1252
Locale info: en_DE
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Dicedtea-web.bin.location=%UserProfile%\AppData\Local\Programs\OpenWebStart\javaws, -Djava.util.Arrays.useLegacyMergeSort=true, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djava.security.manager=allow]
Dataset consistency test: No problems found

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Potlatch2&zip=1

Last errors/warnings:
- 00000.209 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00005.658 W: java.net.SocketException: Connection reset
- 00005.658 E: java.net.SocketException: Connection reset
- 00005.660 W: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketException: Connection reset
- 00010.700 W: java.net.SocketException: Connection reset. Cause: java.net.SocketException: Connection reset
- 00051.564 W: java.net.SocketException: Connection reset
- 00051.564 E: java.net.SocketException: Connection reset
- 00051.565 E: java.util.concurrent.ExecutionException: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketException: Connection reset
- 00051.567 E: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketException: Connection reset
- 00051.571 E: Network exception - <html>Failed to open a connection to the remote server<br>'https://api.openstreetmap.org/api/0.6/relations?relations=3627127,3641047,3585265,3641048,3627128'.<br>Please check your internet connection.</html>

Attachments (2)

2025-02-02 19_00_22-Java OpenStreetMap Editor.png (39.4 KB ) - added by Hubert87 6 days ago.
Error Popup
2025-02-02 19_01_45-.png (33.1 KB ) - added by Hubert87 6 days ago.
Reproduction Steps

Download all attachments as: .zip

Change History (3)

by Hubert87, 6 days ago

Error Popup

by Hubert87, 6 days ago

Attachment: 2025-02-02 19_01_45-.png added

Reproduction Steps

comment:1 by stoecker, 6 days ago

Resolution: irreproducible
Status: newclosed

That looks like an unreliable network. Not much we can do.

If you're sure your setup is IPv4 only the following will not help. In case you somehow have an unstable IPv6 it may help to set "prefer.ipv6" to false. This will prevent trying to use IPv6. Thought for IPv4 only it will have no real effect.

I can only suggest to use a tool like wireshark for checking your data flow and see if there are resends, errors and outages. But that's no easy task.

That webbrowsers work and JOSM fails can either be random or be based on the fact that webbrowsers try a lot to mitigate issues in the underlying network to get better user experience essentially hiding a lot of trouble. Java lacks a bit here and we didn't want to redo everything in JOSM.

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.