Closed tcrasset closed 1 month ago
IThere was a bit of conversation around this in the discord earlier if you're interested!
I believe that this is possible in some capacity at the moment, but only once the rate limit has been reached. The message would have to be something simple like "the rate limit has been reached, please wait for it to reset" as we can not access the headers to give information on when the time window resets through nordigen-node
as it is currently implemented.
I've raised nordigen/nordigen-node#62 in hopes that something can be done about this.
This is tough if I'm understanding what you're proposing. How can we define an unnecessary sync event?
The easier route to this (this could have been what you meant too, I could have misunderstood!) is to optimise the way that actual performs bank syncs. Currently, any sync will use 3 api calls, which means that when the 4/day limit is imposed we're limiting users to 1 sync per day.
Looking at the code we could optimise the way we fetch relatively easily, I'm looking at a change to do it at the moment but I'll be moving house tomorrow so it's all a little hectic here as you can probably imagine.
My propsal is:
Closing this as we've made the sync as lean as possible and errors are shown in the UI when the rate limit is exceeded.
Verified issue does not already exist?
What happened?
I got the following mail from GoCardless. I think we should grab those headers from each response and keep count of where we're at, so that we can:
What error did you receive?
No response
Where are you hosting Actual?
None
What browsers are you seeing the problem on?
No response
Operating System
None