-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error de conexión (Connection error) #2556
Comments
Hi were you able to connect to openstreetmap.org with your device while Vespucci wasn't able to? |
Not actionable. |
Yes. I had to go to settings > advanced preferences > server settings > osm api url, switch to sandbox api, download an area, switch back to live api and only after that I could login and download data. |
@AntonKhorev but you were not the person reporting the issue? Or were you? |
I'm not the one who opened this issue. |
Sorry just wanted to be sure, I've seen the same behaviour on a friends device in the mean time. Question: did the migration to OAuth2 work for you and have you previously used offline data? |
Currently I have a "Vespucci 3rd party" authorization in https://www.openstreetmap.org/oauth2/authorized_applications and I still have switch to sandbox if Vespucci stops. I didn't notice any migration messages when this started happening. I saw them later when I tried installing various versions of Vespucci. |
Offline data: I don't know, usually I have data from a previous editing session. |
Connection errors started happening when I tried editing with version 20.0.1.0 for the first time (all versions are from F-Droid). I went back to 20.0.0.0 and also got connection errors. Then I went back to 19.3.5.0 and I still got connection errors. After that I checked my last successful edit and it was with 20.0.0.0: https://www.openstreetmap.org/changeset/150552983 No connection errors were happening at that time. |
So you are still seeing the behaviour? If so could you immediately after you get the error message send a crash dump (main overflow menu -> Debug -> Button at the bottom of the screen), pls include a reference to this issue in the comment. |
@AntonKhorev got the dump, unluckily it missed the relevant bit. We only receive 500 lines of logs and and an issue with an unrelated app used up most of that. If you want to, you can try again, perhaps try to make the device as quiescent as possible. |
@AntonKhorev is this still occurring? |
still occurring in v20.0.1.0 |
I have the same problem. I am using Android 7. |
@SlavaZoid
|
all settings are made as shown in the screenshot. https://drive.google.com/file/d/1eI7IIaLmqhStwiELzCd9dYiEfLX1uvbB/view?usp=drivesdk The app was installed from Google Play. ver: 20.0.2.0 |
Could you try to send in a crash dump immediately after you get the error message (as described above), please indicate that it is for this error. |
I'm not sure if I did everything right.
|
@SlavaZoid Thanks that worked and the issue is obvious now. Seems as if some devices don't have the correct certificates installed, or there is a configuration issue on the OSM API side of things. According to @datendelphin installing the ISRG root X1 certificate manually fixes the issue. See https://letsencrypt.org/certificates/
|
Deleted the current certificate and installed a new one. I tried isrrootx1.pem, then isrg-root-x1-cross-signed.pem. Page https://valid-isrgrootx1.letsencrypt.org the phone open without errors, but the program still reports a server error. crash dump sent. I looked at the logcat. The error is the same: |
Actually I don't have to download an area. Switching to the sandbox api, exiting the settings, switching back to the main api is enough. v20.0.2.0. |
And it worked!!! |
That is likely misleading, browsers typically maintain their own trust store and do not use the system provided one. The fact that opening a connection to the dev server "magically" fixes the issue seems to be highly suspect. |
See https://community.letsencrypt.org/t/letsencrypt-certificates-fails-on-android-phones-running-android-7-or-older/205686/2 essentially I suspect you are all screwed. I will give providing our own trust store a look but I wouldn't get my hopes high. See also #1277 |
This allows connections to sites using letsencrypt certificates to continue to work for now on pre Android 7.1 devices. In particular this affects the OSM API. It is likely that this fix increases memory usage by multiple MBs. Note: this does not solve the issue for things that do not use OkHttp, for example ACRA. Resolves #2556 Resolves #1277
Note that as mentioned on the release the fix doesn't resolve the issue for anything that uses a webview with other words re-authenticating to openstreetmap.org will currently not work. However we have a fix in the works for that too. See #2578 |
I installed version 20.0.3 Release. Everything is working well. Thank you. |
Description:
Hola. Hablo para reportar un problema que estoy presentando. Intento descargar un área para editar en la app. Pero entonces Vespucci me dice que no se pudo conectar al servidor. Estoy usando una conexión Wi-Fi y sigo presentando este problema.
Device info:
The text was updated successfully, but these errors were encountered: