Open tschut opened 4 years ago
A bit more logging:
2020-05-14 19:07:30,308 | INFO | app | Running in SYNC mode. | (app.py:35)
2020-05-14 19:07:30,308 | INFO | bunq2ynab | Trying to sync Bunq user: ******* account: ******* to Ynab budget: ********* and account ***. | (bunq2ynab.py:10)
2020-05-14 19:07:30,308 | INFO | bunq2ynab | Getting BUNQ identifiers... | (bunq2ynab.py:14)
2020-05-14 19:07:30,968 | INFO | app | Detected authorization error, resetting config | (app.py:38)```
This line: https://github.com/javydekoning/bunq-ynab-aws-lambda/blob/de7fcf3887c07c3efb52e0efe5ece208c0000569/bunq2ynab/app.py#L37 will reset the config with every exception. Even if it isn't a connection error with bunq....
For example:
2020-05-27 14:25:44,860 | INFO | bunq2ynab | Getting BUNQ identifiers... | (bunq2ynab.py:14) 2020-05-27 14:25:45,839 | INFO | bunq2ynab | Getting YNAB identifiers... | (bunq2ynab.py:18) 2020-05-27 14:25:46,844 | INFO | app | Failed to sync: YNAB account 'Incassorekening' not found | (app.py:38) 2020-05-27 14:25:46,845 | INFO | app | Detected authorization error, resetting config | (app.py:39) 2020-05-27 14:25:46,859 | INFO | config | Saving new config: {
To get some more info on why syncing failes we need to add:
except Exception as e:
LOGGER.info('Failed to sync: '+ str(e))
Hi @arnemauer @tschut sorry for not responding to this sooner, is any open for submitting a pull request?
Hi,
I can successfully list my bunq and ynab accounts. However, when I've added those to the config and try to run this, I keep getting:
2020-05-14 19:06:30,189 | INFO | app | Detected authorization error, resetting config | (app.py:38)
Do I need to configure anything additional on the bunq or ynab side?