casimir / frigoligo

Your articles with you
MIT License
50 stars 4 forks source link

unknow server error #34

Closed axac closed 1 year ago

axac commented 1 year ago

Hi, I'm on android, i use the version 0.3.2. I have a selfhost wallabag. And when i write the URL (the same than wallabag client) i have this error : unknow server error Thanks.

casimir commented 1 year ago

Hi, would you mind sharing your server address? You can email it at contact@casimir-lab.net if you don't want to make it public here.

casimir commented 1 year ago

Thanks for your email. As I said in my answer I can't reproduce from my end. Do you have issue to access your server from other applications on your phone? From the web browser maybe?

axac commented 1 year ago

Thank you. I have no problem connecting with the official walabag application as well with my browser. I will try to install your software on my PC (linux mint).

axac commented 1 year ago

Hi, the linux version (appimage) works fine. maybe the problem comes from my smartphone.

casimir commented 1 year ago

I don't think this is an issue specific to the app but you are the first android user I've got feedback from, so anything goes.

I made a build specially for you with a better error display: https://github.com/casimir/frigoligo/actions/runs/5778398227 Hopefully that will tell you exactly what's happening.

axac commented 1 year ago

Thann you !. This is the screenshot.

Le 6 août 2023 21:41:37 GMT+02:00, Martin Chaine @.***> a écrit :

I don't think this is an issue specific to the app but you are the first android other I've heard of, so anything goes.

I made a build specially for you with a better error display: https://github.com/casimir/frigoligo/actions/runs/5778398227 Hopefully that will tell you exactly what's happening.

-- Reply to this email directly or view it on GitHub: https://github.com/casimir/frigoligo/issues/34#issuecomment-1666952401 You are receiving this because you authored the thread.

Message ID: @.***>

xadium commented 1 year ago

I’m on iOS and I’m getting the same error. Self-hosted, running Wallabag 2.6.2, https, NGINX server…

Web server giving a 500:

[07/Aug/2023:00:17:07 +0100] "GET /api/info.json HTTP/1.1" 500 68 "-" "Dart/3.0 (dart:io)"

Works fine from the browser on my phone.

casimir commented 1 year ago

Nice catch @xadium! A 500 error means an issue from the server side. By any chance, can you see the error logged (with more detailed) in Wallabag's log? A PHP error hopefully.

casimir commented 1 year ago

@axac I think you forgot to join the screenshot in your email 😅 Anyway, it seems like the release version lacked the INTERNET permission so that can come from there. You can check it with this special build: https://github.com/casimir/frigoligo/actions/runs/5783277804

axac commented 1 year ago

Thanks a lot. It's work fine with the last version

xadium commented 1 year ago

Nice catch @xadium! A 500 error means an issue from the server side. By any chance, can you see the error logged (with more detailed) in Wallabag's log? A PHP error hopefully.

[2023-08-07 00:39:29] request.INFO: Matched route "api_get_info". {"route":"api_get_info","route_parameters":{"_route":"api_get_info","_format":"json","_controller":"Wallabag\\ApiBundle\\Controller\\WallabagRestController::getInfoAction"},"request_uri":"https://wallabag.XXXXXXXXXX/api/info.json","method":"GET"} []
[2023-08-07 00:39:29] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2023-08-07 00:39:29] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "getAttributes" of class "ReflectionClass"." at /var/www/wallabag/vendor/jms/serializer/src/Metadata/Driver/AttributeDriver/AttributeReader.php line 29 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Attempted to call an undefined method named \"getAttributes\" of class \"ReflectionClass\". at /var/www/wallabag/vendor/jms/serializer/src/Metadata/Driver/AttributeDriver/AttributeReader.php:29)"} []
casimir commented 1 year ago

Fixed by #38.

@xadium your issue is a different one. So I took the liberty to move it in a dedicated issue #40.