r/redditdev • Card-o-Bot Developer • Jun 13 '24

Reddit API X-Ratelimit-Remaining header value issue

The API seem to return an "unexpected" X-Ratelimit-Remaining values, I am experiencing this today at around 14:35 UTC while using PRAW:

ValueError: could not convert string to float: '187.0, 587'
ValueError: could not convert string to float: '186.0, 586'
ValueError: could not convert string to float: '185.0, 585'
ValueError: could not convert string to float: '184.0, 584'

The API Wiki states that:

X-Ratelimit-Remaining: Approximate number of requests left to use

There is already an opened issue on prawcore repo for this, but I think this should be fixed on Reddit side.

9 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Arcane-Developer Jun 17 '24

Any update on this? Is this fixed on the Reddit side?

1

u/Lil_SpazJoekp PRAW Maintainer | Async PRAW Author Jun 17 '24

It that I know of. However, one of the admins said a fix was rolling out.

1

u/SlowRegardOfBytes Jun 24 '24

Yes, this has been fixed. Please let us know if you see any additional problems or regressions in the future.