dreautall / waterfly-iii

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

Api key error #372

Closed ShafeeqHamza closed 4 months ago

ShafeeqHamza commented 4 months ago

I've installed 6.1.13 of firefly iii (shared hosting) and the latest Google Play Store version of Waterfly iii.

I have the personal access token that works fine with Abacus but refuses to work with Waterfly iii and I get API key error.

Am I doing something wrong?

Screenshot_20240427-200114

dreautall commented 4 months ago

Are you using a Personal Access Token? I think Abacus works with both OAuth and the Personal Access Token, Waterfly III only with the latter.

It's the lower option on this page (where currently none are created) - make sure you copy it all, it's quite lengthy, and will only be shown once.

image

ShafeeqHamza commented 4 months ago

Thanks for the quick response!

When creating an oAuth token I need to enter a call back url. What would that be? I tried entering my website name but that didn't seem to work.

Screenshot_20240428-073628

dreautall commented 4 months ago

Sorry, you need to create the other type of key (the button "Create new token", not "create new client". There you just get the code.

ShafeeqHamza commented 4 months ago

Tried both. Is there a log I can look at that could probably shed more light? Screenshot_20240428-201849

ShafeeqHamza commented 4 months ago

I located the debugging options in Firefly and turned them on to "debug" and cleared all the log files in storage->logs

Then tried logging on using the oAuth key and again using the Key. No logs at all. Logged in via the web and it logged.

[2024-04-29 06:07:36] production.DEBUG: User is trying to login.  
[2024-04-29 06:07:36] production.DEBUG: Login data is present.  
[2024-04-29 06:07:36] production.DEBUG: Redirect after login is /.  
[2024-04-29 06:07:36] production.DEBUG: Now in storeUserIPAddress  
[2024-04-29 06:07:36] production.DEBUG: User logging in from IP address a.b.c.d
dreautall commented 4 months ago

Could you please try the very same steps on the demo page (you need to use the "personal access token" thing, where you don't need a callback URL), and check if that works? Please also provide a screenshot out of the login page of the app with what you've filled out - no need to censor anything on there then, as the demo page resets itself regularly.

ShafeeqHamza commented 4 months ago

Works fine on the demo page!

Screenshot_20240502-230204

Just to clarify - I'm running this on a shared hosting and on 6.1.13 - I can't upgrade because I don't have ssh access 😔

dreautall commented 4 months ago

Well, FF3 v6.1.13 is only one month old - it should work with that... there had been no breaking change in either Firefly or Waterfly since then. But just to make sure I try to get 6.1.13 running somewhere and try it out again.

Any special "protection" for the shared host? Or is it accessible from the web just like the demo page?

ShafeeqHamza commented 4 months ago

Yes, its just a normal website hosting. No fw or cdn.

Appreciate your help, thank you!

On Thu, 2 May 2024, 23:24 dreautall, @.***> wrote:

Well, FF3 v6.1.13 is only one month old - it should work with that... there had been no breaking change in either Firefly or Waterfly since then. But just to make sure I try to get 6.1.13 running somewhere and try it out again.

Any special "protection" for the shared host? Or is it accessible from the web just like the demo page?

— Reply to this email directly, view it on GitHub https://github.com/dreautall/waterfly-iii/issues/372#issuecomment-2091172042, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVSJKMDA6K33X2VO777PZLZAJ4W3AVCNFSM6AAAAABG4ETVXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRGE3TEMBUGI . You are receiving this because you authored the thread.Message ID: @.***>

ShafeeqHamza commented 4 months ago

Got it working! Added a trailing /public and viola!

Thank you for a wonderful app and service...

On Fri, 3 May 2024, 05:20 Shafeeq Hamza, @.***> wrote:

Yes, its just a normal website hosting. No fw or cdn.

Appreciate your help, thank you!

On Thu, 2 May 2024, 23:24 dreautall, @.***> wrote:

Well, FF3 v6.1.13 is only one month old - it should work with that... there had been no breaking change in either Firefly or Waterfly since then. But just to make sure I try to get 6.1.13 running somewhere and try it out again.

Any special "protection" for the shared host? Or is it accessible from the web just like the demo page?

— Reply to this email directly, view it on GitHub https://github.com/dreautall/waterfly-iii/issues/372#issuecomment-2091172042, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVSJKMDA6K33X2VO777PZLZAJ4W3AVCNFSM6AAAAABG4ETVXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRGE3TEMBUGI . You are receiving this because you authored the thread.Message ID: @.***>

dreautall commented 4 months ago

huh.. that's strange though. you never see /public in the browser or something?! How did you get to this idea?

Thank you for reporting it being solved, though!

ShafeeqHamza commented 4 months ago

My installation shows /public for all pages. I installed firefly via Softaculous.

I am now seeing some other issues. Transactions are saved for a future time. I see it all right on the server but for some reason, unless I change the filter to show future transactions Waterfly doesn't show it.

On Fri, 3 May 2024, 23:40 dreautall, @.***> wrote:

huh.. that's strange though. you never see /public in the browser or something?! How did you get to this idea?

Thank you for reporting it being solved, though!

— Reply to this email directly, view it on GitHub https://github.com/dreautall/waterfly-iii/issues/372#issuecomment-2093518879, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVSJKOREYWOTEM3I3XPBELZAPHI3AVCNFSM6AAAAABG4ETVXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJTGUYTQOBXHE . You are receiving this because you authored the thread.Message ID: @.***>

ShafeeqHamza commented 4 months ago

Fyi, works fine on firefly app, also don't have to specify the trailing url.

On Fri, 3 May 2024, 23:40 dreautall, @.***> wrote:

huh.. that's strange though. you never see /public in the browser or something?! How did you get to this idea?

Thank you for reporting it being solved, though!

— Reply to this email directly, view it on GitHub https://github.com/dreautall/waterfly-iii/issues/372#issuecomment-2093518879, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVSJKOREYWOTEM3I3XPBELZAPHI3AVCNFSM6AAAAABG4ETVXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJTGUYTQOBXHE . You are receiving this because you authored the thread.Message ID: @.***>

dreautall commented 4 months ago

For the time stuff, toggle "use server time" in the settings off. If your hoster is in a different time zone than your device, this might be the issue.