emansih / FireflyMobile

Mobile Application for Firefly III written in Kotlin
GNU General Public License v3.0
324 stars 48 forks source link

Cannot login via PAT #52

Closed zeridon closed 5 years ago

zeridon commented 5 years ago

Firefly III Server Version: 4.7.17

Firefly III Mobile Version: 1.3.3

Android Version:
7.0 Device Information:

Current Behavior

App says "No asset accounts found, do you want to add" If ok -> crash if no-> closes

Steps to Reproduce

Nginx logs

That is all i see in the logs

==> /var/log/nginx/money-ssl-access.log <==
[11/Jun/2019:12:48:56 +0000] "GET /api/v1/accounts?type=all&page=1 HTTP/1.1" 200 43617 "-" "xyz.hisname.fireflyiii"
[11/Jun/2019:12:48:57 +0000] "GET /api/v1/accounts?type=all&page=2 HTTP/1.1" 200 32818 "-" "xyz.hisname.fireflyiii"
emansih commented 5 years ago

Ok, just to be clear. What is your url format?

192.168.1.1
192.168.1.1/
192.168.1.1/firefly
192.168.1.1/firefly/
https://192.1688.1.1
https://192.1688.1.1/firefly
https://192.1688.1.1/firefly/
zeridon commented 5 years ago

https://sub.domain.com

On Tue, Jun 11, 2019, 16:35 Daniel Quah notifications@github.com wrote:

Ok, just to be clear. What is your url format?

192.168.1.1192.168.1.1/192.168.1.1/firefly192.168.1.1/firefly/https://192.1688.1.1https://192.1688.1.1/fireflyhttps://192.1688.1.1/firefly/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emansih/FireflyMobile/issues/52?email_source=notifications&email_token=ABGYWB5QR3J2KCHEERDJP7TPZ6S3JA5CNFSM4HW6EWXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXNELWY#issuecomment-500843995, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGYWBYAC2ACNEDZOROG753PZ6S3JANCNFSM4HW6EWXA .

zeridon commented 5 years ago

On the first page there are 3 asset accounts listed (as much as i have).

Plugging type=asset instead of type=all returns only my asset accounts (and maybe is a more sensible request to send.

emansih commented 5 years ago

I agree that it is more sensible to get only assets accounts.

sokai commented 5 years ago

Hey there …

I sadly have a similar problem with the login. And I don't know how to fix it… – The login (with the "Personal Access Token" in the app) is running very long without success/response and after some time (feels like 5 minutes or more) I'm on the login screen again.

I get the following Nginx message if I try to login with the app: [12/Jul/2019:14:20:49 +0200] "GET /api/v1/accounts?type=asset&page=1 HTTP/2.0" 200 1961 "-" "xyz.hisname.fireflyiii

I have:

Thanks and best regards!

emansih commented 5 years ago

Thanks for bringing up this issue. (https://github.com/emansih/FireflyMobile/commit/af1257756730fae422d82eb78bee7397d2ea8a43) Fixed.