SEIAROTg / autobean

A collection of plugins and scripts that help automating bookkeeping with beancount
GNU General Public License v2.0
63 stars 7 forks source link

fix(truelayer): log and raise http errors #5

Closed barnybug closed 2 years ago

barnybug commented 2 years ago

I noticed a couple of my accounts failing to get (non-pending) transactions any more, having worked previously. Looks like there was an error triggered when requesting more than 90 days of transaction, but the error was being hidden.

ERROR:root:Error fetching: {"error_description":"Access denied","error":"access_denied","error_details":{"provider_details":"Client application error: NO-BODY"}}
ERROR:root:Importer autobean.truelayer.extract() raised an unexpected error: 403 Client Error: Forbidden for url: ...
Traceback (most recent call last):

Added logging and raise the error to make it obvious there's a problem.

(I wonder if from should be updated to request only last 90 days - on two banks if I request more I see this 403)