Skip to content
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

lichess servers unreachable. Failed to fetch #897

Closed
gabriel80546 opened this issue Sep 3, 2018 · 23 comments
Closed

lichess servers unreachable. Failed to fetch #897

gabriel80546 opened this issue Sep 3, 2018 · 23 comments

Comments

@gabriel80546
Copy link

gabriel80546 commented Sep 3, 2018

after app update, im not able to login and play online
although i do have internet connection normaly to lichess.org through chrome browser app
brow

phone model: Moto G (1st Generation)
android version: 5.1
kernel: 3.4.42-g89906d6

failtofetch

@gabriel80546 gabriel80546 changed the title lichess servers unreachable. Fail to fetch lichess servers unreachable. Failed to fetch Sep 3, 2018
@gabriel80546
Copy link
Author

new version has fixed this
https://github.com/veloce/lichobile/releases/tag/v6.1.0

@veloce veloce closed this as completed Sep 28, 2018
@francois90
Copy link

This seems to be broken again for me, I have this exact same problem.
Screenshot_20190808-022416_lichess

@ornicar
Copy link
Collaborator

ornicar commented Aug 8, 2019

I receive a number of emails about that very problem nowadays

@francois90
Copy link

francois90 commented Aug 12, 2019 via email

@landry314
Copy link

Just reinstalled my Android OS 9.0.0 and on Lichess 6.1.4 I am having this exact issue. What am I suppose to do? I need my chess.

@ornicar ornicar reopened this Aug 12, 2019
@ornicar
Copy link
Collaborator

ornicar commented Aug 12, 2019

You guys can use the lichess.org website in your mobile browser while we get the app issue figured out.

@niklasf
Copy link
Member

niklasf commented Aug 13, 2019

Can reproduce on Android 9. logcat:

08-13 10:04:59.750 18849 18849 D SystemWebChromeClient: file:///android_asset/www/index.html: Line 0 : Access to fetch at 'https://lichess.org/' from origin 'file://' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
08-13 10:04:59.751 18849 18849 I chromium: [INFO:CONSOLE(0)] "Access to fetch at 'https://lichess.org/' from origin 'file://' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.", source: file:///android_asset/www/index.html (0)

Can not reproduce when building from source. But note that:

WARNING: The specified Android SDK Build Tools version (23.0.3) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.0.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

@freefal
Copy link
Collaborator

freefal commented Aug 16, 2019

Can those with this issue please let me know what version of Chrome they have installed and then try updating Chrome per this comment (https://stackoverflow.com/questions/49937905/access-control-allow-origin-error-using-cordova/57489240#57489240) and report back if that fixes the issue?

@francois90
Copy link

If you are talking about the android system webview then my version is 76.0.3809.89

@freefal
Copy link
Collaborator

freefal commented Aug 17, 2019 via email

@francois90
Copy link

francois90 commented Aug 17, 2019 via email

@stapel
Copy link

stapel commented Aug 20, 2019

I am using LineageOS 16 (microg, klte). With the bundled 76.0.3809.111 I have the same problem. After manually installing the google-version with the same version (change Webview: Settings/System/Developer options/Webview Implementation) I can login again, so it seems to be a problem with the LineageOS-build.

@landry314
Copy link

landry314 commented Aug 22, 2019

Oh, OK! I am using Lineage OS 16.0-20190810 and this problem with the Lichess app happened right after installing the August build. With the July build it was fine. So, it appears to be a problem with the August build of Lineage OS. I was thinking it might just be the Android 9.0 build but I guess not...

@zorbey-qcow2
Copy link

zorbey-qcow2 commented Aug 27, 2019

How To Fix :

  • Go to developer options
  • WebView useage
  • Choose Chrome (if not installed, install Chrome first)

Screenshot_20190828-021011_Ayarlar
Screenshot_20190828-021028_Ayarlar

@friendRU
Copy link

friendRU commented Sep 2, 2019

Hello there! I have the same problem on my Honor 9, Android - EMUI 9.0.1.
I cope with this issue this way:
Go to Settings -> Apps -> Apps (one more inside) -> lichess -> Memory (or something similar) -> Clear data.

It removes your local data, but leaves account history. Next time you open the app, you should sign in again. This workaround works until you quit lichess or until it have lost the connection with the server by timeout (if it have been running on the background for a while)

@landry314
Copy link

landry314 commented Sep 3, 2019

@Zorbeyd, thank you so much! This fix worked for me but instead of Chrome I just downloaded the newest "Android System WebView" from the Play Store and then selected it in the Developer options like you suggested.

  1. Download "Android System WebView"
  2. Go to "Developer options" --> WebView Implementation
  3. Choose the version with the newest version number and the same icon as in the Play Store

For me, the Lineage OS August build came with WebView version 76.0.3809.89 and I downloaded 76.0.3809.132 which is working great so far...

I'm assuming when the next build of Lineage OS comes out, it will include the newest WebView and so we can delete the downloaded version and everything will be fine...

@klausweiss
Copy link

As a person not using Play Store, I've found Bromite SystemWebView useful. Lichobile is working like a charm with build v76.0.3809.129 on Lenovo P2.

@veloce
Copy link
Collaborator

veloce commented Sep 6, 2019

nice sharing, thank you!

@samoilov
Copy link

Была такая же проблема. Решил так.
Настройки для разработчиков > Сервис webview > и всем то android выбрать chrome.
Перезагрузиться.

@francois90
Copy link

I was finally able to update my device today but it didn't fix the issue even thaugh tthe webview version is now 76.0.3809.111

@landry314
Copy link

landry314 commented Sep 24, 2019

Well, I just updated Android System WebView to 77.0.3865.92 and it is working great!

@francois90
Copy link

Same for me, last system update fixed the issue

@landry314
Copy link

I believe this issue should be closed as Lineage OS now has a version of WebView that works with lichess.

@ornicar ornicar closed this as completed Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests