robvankeilegom / firefly-III-paypal-importer

PayPal Data Importer for Firefly III
48 stars 3 forks source link

[Bug] Getting Undefined property: stdClass::$errors with Authelia Authentication #11

Closed PhalanxHead closed 1 year ago

PhalanxHead commented 1 year ago

Hi again,

I recently changed my Firefly config to use Authelia as its ID provider, rather than using the internal database.

Moving back to do paypal importing, I'm now getting the following error:

 php artisan sync:firefly
Pushing data to Firefly

In Firefly.php line 180:

  Undefined property: stdClass::$errors

I'm not sure if it's an issue with the OAuth token being rejected, or the API call being filtered by Authelia's rules.

I checked that calling GET https://myServer/api/v1/about works fine, but I can't seem to quite figure out the call chain for transaction creation. Is there a way to enable HTTP logging so I can see what the error is?

Thanks! Luka

PhalanxHead commented 1 year ago

Update: Might have been incorrect about the GET request working, I suspect my authelia setup is somehow incorrect.

If I fix it, I'll close this ticket :)

PhalanxHead commented 1 year ago

Update the second: I think this is an issue with Authelia not accepting the PATs generated by Firefly.

As a result, I've decided to move back to web authentication, and hide the app behind authelia.

Seems to be working, but it's a bit ugly.