Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error because Ynab API servers discontinued sending X-Rate-Limit header #37

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

mschilli
Copy link
Contributor

@mschilli mschilli commented Feb 5, 2025

Ynab API servers discontinued sending the X-Rate-Limit header in late 2023 (ynab/ynab-sdk-js#164) which now breaks the client ("invalid rate limit string") at runtime. There's no way to obtain the current rate limit via the API (https://api.ynab.com/#rate-limiting), so it's probably best to rip out all related functions. This will break anyone relying on the public RateLimit() function, but their applications are already broken throwing runtime errors because of the missing header.

As a side note, the client used to work for me until about a month ago and then suddenly broke, so I suspect the API servers included the X-Rate-Limit header until recently and then turned it off (early 2025).

… 2023

(ynab/ynab-sdk-js#164) which now breaks the client
("invalid rate limit string"). There's no way to obtain the current rate limit
via the API (https://api.ynab.com/#rate-limiting), so it's
probably best to rip out all related functions. This will break anyone relying
on the public RateLimit() function, but their applications are already broken
throwing runtime errors because of the missing header.
@brunomvsouza brunomvsouza merged commit c198975 into brunomvsouza:main Feb 8, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants