dreautall / waterfly-iii

Unofficial Android App for Firefly III, a free and open source personal finance manager.
MIT License
362 stars 29 forks source link

Can't upload any attachment #363

Open 000exploit opened 7 months ago

000exploit commented 7 months ago

I have double-checked that everything is working from the web version, but when I try to upload a file for a transaction, I get an 'unknown error' in the client and while uploading the file, I see 0 B instead of its size. Also when uploading any attachments I get the error production.ERROR: Body of attachment is empty. on the server. Turns out it works in emansih/FireflyMobile as well.

image

Waterfly III 1.0.1 from F-Droid Firefly v6.1.13 Android 14 LineageOS 21

dreautall commented 7 months ago

Hi, could you please turn on the debug logs, try it again, and send it to me (by disabling the log option)? (Alternatively you can also upload to github, just make sure to censor everything, like your host etc). Thank you!

000exploit commented 7 months ago

I don't see any explicit error messages here, but there are 2 log files with creating a new transaction with attachment and editing an existing transaction. Of course, they're censored enough.

debuglog_new_tnx.txt debuglog_add_attach_to_an_existing_tnx.txt

hermitdafunk commented 2 months ago

Hi, I experiencing a similar issue, however, attachments are made but not uploaded to the record on the server. When I view the transactions on the web interface it is missing the attachments. This is for 50 transactions. Which is a pain in the ass to rectify now, lol.

When i view the record on the android app it shows correctly. There is no errors That I can see.

The following is log file as transaction is created on the mobile phone with an attached file.

To be clear: Transaction and attached file is working on the mobile app Web interface the transaction is present but no attachment.

127.0.0.1 - - [08/Sep/2024:09:25:13 +0800] "GET /health HTTP/1.1" 200 1741 "-" "Firefly III Health Checker/2.2"
127.0.0.1 - - [08/Sep/2024:09:27:13 +0800] "GET /health HTTP/1.1" 200 1741 "-" "Firefly III Health Checker/2.2"
127.0.0.1 - - [08/Sep/2024:09:24:13 +0800] "GET /health HTTP/1.1" 200 1741 "-" "Firefly III Health Checker/2.2"
192.168.xx.xxx - - [08/Sep/2024:09:23:01 +0800] "GET /api/v1/tags?page=1 HTTP/1.1" 200 7889 "-" "com.dreautall.waterflyiii/333 (Linux; U; Android 14; en_US; Pixel 8 Pro; Build/AP2A.240905.003; Cronet/129.0.6614.4)"
127.0.0.1 - - [08/Sep/2024:09:23:13 +0800] "GET /health HTTP/1.1" 200 1741 "-" "Firefly III Health Checker/2.2"

192.168.xx.xxx - - [08/Sep/2024:09:24:23 +0800] "GET /api/v1/autocomplete/categories?query=Business-related%20travel%20expenses HTTP/1.1" 200 995 "-" "com.dreautall.waterflyiii/333 (Linux; U; Android 14; en_US; Pixel 8 Pro; Build/AP2A.240905.003; Cronet/129.0.6614.4)"
192.168.xx.xxx - - [08/Sep/2024:09:27:11 +0800] "POST /api/v1/transactions HTTP/1.1" 200 2744 "-" "com.dreautall.waterflyiii/333 (Linux; U; Android 14; en_US; Pixel 8 Pro; Build/AP2A.240905.003; Cronet/129.0.6614.4)"
127.0.0.1 - - [08/Sep/2024:09:26:13 +0800] "GET /health HTTP/1.1" 200 1741 "-" "Firefly III Health Checker/2.2"

192.168.xx.xxx - - [08/Sep/2024:09:25:23 +0800] "GET /api/v1/autocomplete/categories?query=Business-related%20travel%20expenses HTTP/1.1" 200 995 "-" "com.dreautall.waterflyiii/333 (Linux; U; Android 14; en_US; Pixel 8 Pro; Build/AP2A.240905.003; Cronet/129.0.6614.4)"
192.168.xx.xxx - - [08/Sep/2024:09:27:11 +0800] "POST /api/v1/attachments HTTP/1.1" 200 1540 "-" "com.dreautall.waterflyiii/333 (Linux; U; Android 14; en_US; Pixel 8 Pro; Build/AP2A.240905.003; Cronet/129.0.6614.4)"
192.168.xx.xxx - - [08/Sep/2024:09:27:11 +0800] "POST /api/v1/attachments/100/upload HTTP/1.1" 204 877 "-" "com.dreautall.waterflyiii/333 (Linux; U; Android 14; en_US; Pixel 8 Pro; Build/AP2A.240905.003; Cronet/129.0.6614.4)"
192.168.xx.xxx - - [08/Sep/2024:09:27:11 +0800] "GET /api/v1/transactions?limit=50&page=1&end=2024-09-08 HTTP/1.1" 200 89150 "-" "com.dreautall.waterflyiii/333 (Linux; U; Android 14; en_US; Pixel 8 Pro; Build/AP2A.240905.003; Cronet/129.0.6614.4)"
127.0.0.1 - - [08/Sep/2024:09:28:13 +0800] "GET /health HTTP/1.1" 200 1741 "-" "Firefly III Health Checker/2.2"
hermitdafunk commented 2 months ago

Problem seems to have resolved itself. Now all records created on mobile phone with attachments are viewable on the web interface and attachments are showing.