victorbalssa / abacus

🟠 Abacus: Firefly III mobile application.
https://apps.apple.com/us/app/1627093491
GNU General Public License v3.0
554 stars 41 forks source link

BUG_Android app freezes when logging in #223

Closed step0035 closed 10 months ago

step0035 commented 10 months ago

Describe the bug I am using cloudflare tunnel + nginx proxy manager for my firefly3 instance. I'm also using personal access token to login to my firefly3 instance from my android device. After inputting the URL and personal access token and logging in, there is a brief moment where i can see "successful connection" or something those lines. Then i got stuck at the abacus logo page.

To Reproduce Steps to reproduce the behavior:

  1. Cloudflare + npm for firefly3
  2. Generate personal access token
  3. Install abacus from GPS
  4. Input firefly3 URL (https://firefly.mydomain.com) and personal access token
  5. Login, freezes at logo page.

Expected behavior Should be able to login successfully

Screenshots freezepage

Smartphone (please complete the following information):

Additional context

step0035 commented 10 months ago

Some updates, i tried to bypass nginx and connect to the firefly3 ip address directly on my lan, still facing the same issue.

victorbalssa commented 10 months ago

Hey @step0035,

Unfortunately, I can't reproduce this behaviour locally.

Can you try to connect your phone to the https://demo.firefly-iii.org/ server? This way we could get more info if it's on the server/network/config side or more on the Abacus app side.

step0035 commented 10 months ago

Hi @victorbalssa, thanks for looking into this. I can't reproduce this issue when connecting to the demo firefly server. I have collected the firefly server logs when my phone is trying to connect to it.

172.18.0.1 - - [03/Jan/2024:08:12:43 +0800] "GET /api/v1/about/user HTTP/1.1" 200 1250 "-" "okhttp/4.9.2"
172.18.0.1 - - [03/Jan/2024:08:12:44 +0800] "GET /api/v1/about HTTP/1.1" 200 1030 "-" "okhttp/4.9.2"
172.18.0.1 - - [03/Jan/2024:08:12:44 +0800] "GET /api/v1/currencies HTTP/1.1" 200 10123 "-" "okhttp/4.9.2"
172.18.0.1 - - [03/Jan/2024:08:12:44 +0800] "GET /api/v1/insight/expense/category?start=2024-01-01&end=2024-03-31 HTTP/1.1" 200 1555 "-" "okhttp/4.9.2"
172.18.0.1 - - [03/Jan/2024:08:12:44 +0800] "GET /api/v1/currencies/702/accounts?type=asset&date=2024-03-31 HTTP/1.1" 200 6813 "-" "okhttp/4.9.2"
172.18.0.1 - - [03/Jan/2024:08:12:44 +0800] "GET /api/v1/budgets?start=2024-01-01&end=2024-03-31 HTTP/1.1" 200 6067 "-" "okhttp/4.9.2"
172.18.0.1 - - [03/Jan/2024:08:12:44 +0800] "GET /api/v1/summary/basic?start=2024-01-01&end=2024-03-31&currency_code=702 HTTP/1.1" 200 2822 "-" "okhttp/4.9.2"
172.18.0.1 - - [03/Jan/2024:08:12:44 +0800] "GET /api/v1/budget-limits?start=2024-01-01&end=2024-03-31 HTTP/1.1" 200 12471 "-" "okhttp/4.9.2"
victorbalssa commented 10 months ago

looks like there is an error in the default currency code (you have 702 instead of USD, EUR etc.).

Which version of FireflyIII are you using?

If you go to /currencies in the web app, can you enable only the used currencies and check if there is only 1 "default" currency?

step0035 commented 10 months ago

Yup that was the culprit, changed the currency code and now its working, thanks!