-
Notifications
You must be signed in to change notification settings - Fork 257
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
Wallabag service not found #292
Comments
That's weird. Can you post the URL? If you don't want to post it, you may check whether |
This seems to be related to ticket #333. I have a similar setup. The line |
@ChristianAE I forgot to mention the line |
Both are present: |
Some additional info: I am running wallabag in a Docker container. The container maps the internal port 80 to 9990. From the outside I'm accessing the app using a proxy. This is my virtual host configuration for the proxy (I removed parts not relevant (i.e. SSL certificates)):
|
Will you be able to get logcat output from your device if I provide an APK with more verbose logging? |
I already created a fork. As far as I can tell the isLoginPage(...)-Method in WallabagServiceEndpointV2 is responsible to determine if it is a valid endpoint. Anything special I need to be aware of when setting up the project in Android Studio? |
You are most likely interested in the content of the I just pushed a branch with logging added to the "Import project..." in Android Studio should work fine. |
I debugged the branch you provided. As far as I can tell the problem is related to a redirect happening when doing the test of the connection. When examining the response object I have the following attributes:
Pay close attention to the request parameter. While on priorResponse it uses https, in the second it uses http. I am not sure if this is related to it. When opening the http URL in the browser it redirects me to the https version. Same happens when doing a GET request with Postman. Here is the log output:
|
The problem is the redirect! The Method |
I solved the problem by adding This way the redirect uses It seems odd to me that OkHttp "decides" to downgrade the connection to the unsafer http. Nevertheless @di72nn thank you for you effort and patience! |
I'm glad you resolved it. And thank you for the details. |
Please reopen if you can reproduce the problem with the latest app version. |
Seems, I have the same problem with my installation.
Redirect in vhost.conf: |
@rototom seems good to me. If it still doesn't work for you, can you open a new issue and provide more info (like what you do and which error message you get)? |
I seem to have a similar problem. The connection test of the Android app fails with "Connection test failed: Unknown page after login" on my self-hosted Wallabag instance. In /var/log/apache2/wallabag_access.log I see:
By the way, is it normal that if I visit the /login_check page in my browser, I get a "405 Method Not Allowed" http error? I have a vhost file such as in https://doc.wallabag.org/en/admin/installation/virtualhosts.html, but I'm running an https version too with Let's Encrypt and this added a rewrite rule to redirect http requests to https, so I'm always using https:
I tried adding Header edit Location ^http: https: such as ChristianAE suggested, but this didn't change my connection problem. |
Please state your wallabag server version, installation method, and Android app version. You can try to enter incorrect password in the app and see whether it shows a different error (something like "incorrect username or password"). |
I installed Wallabag from Git, here is what I did: https://community.wallabag.org/t/blank-page-after-installation-permission-denied-errors/87/4 (that problem is already solved). Wallabag server version: 2.2.3 When I enter an incorrect username and password, I get another error message indeed: "Can't login - check username and password". |
I take it you have no problem logging in with a desktop web browser, right? Can you do it (log in) and show the apache log fragment that contains |
Well, the Android app suddenly suddenly works now. But I was running a Redis worker for importing my Pocket articles. Maybe the load was too much for my server and the app got a timeout? At least it's sorted out now. |
Hi there,
I am attempting to connect to my wallabag service hosted on my Apache web server. This wallabag instance is v2. It functions properly when connecting through a web browser.
However, when connecting via the Android app, I consistently get the error, "Fail Wallabag service not found; check URL. Error code: 1"
I have tried multiple variants of the URL that the web browser works with; none work with the Android app.
Any suggestions?
The text was updated successfully, but these errors were encountered: