Getting RateLimitException on reddit bridge with fresh ip
Hi, I started getting the following error this morning:
Details
Type: RateLimitException
Code: 0
Message:
File: lib/utils.php
Line: 264
Trace
#0 index.php(73): RssBridge->main()
#1 lib/RssBridge.php(39): RssBridge->{closure}()
#2 lib/RssBridge.php(37): BasicAuthMiddleware->__invoke()
#3 middlewares/BasicAuthMiddleware.php(36): RssBridge->{closure}()
#4 lib/RssBridge.php(37): CacheMiddleware->__invoke()
#5 middlewares/CacheMiddleware.php(44): RssBridge->{closure}()
#6 lib/RssBridge.php(37): ExceptionMiddleware->__invoke()
#7 middlewares/ExceptionMiddleware.php(17): RssBridge->{closure}()
#8 lib/RssBridge.php(37): SecurityMiddleware->__invoke()
#9 middlewares/SecurityMiddleware.php(19): RssBridge->{closure}()
#10 lib/RssBridge.php(37): MaintenanceMiddleware->__invoke()
#11 middlewares/MaintenanceMiddleware.php(10): RssBridge->{closure}()
#12 lib/RssBridge.php(37): TokenAuthenticationMiddleware->__invoke()
#13 middlewares/TokenAuthenticationMiddleware.php(10): RssBridge->{closure}()
#14 lib/RssBridge.php(34): DisplayAction->__invoke()
#15 actions/DisplayAction.php(54): DisplayAction->createResponse()
#16 actions/DisplayAction.php(89): RedditBridge->collectData()
#17 bridges/RedditBridge.php(119): throwRateLimitException()
#18 lib/utils.php(264)
Context
Query: action=display&bridge=RedditBridge&context=single&r=selfhosted&f=&score=&min_comments=-1&d=hot&t=week&search=&frontend=https://old.reddit.com&format=Html
Version: 2025-08-05
OS: Linux
PHP: 8.2.29
The same error also shows right after even when I refreshed the server IP to a new one (and on the fist try), and also when testing using the public rss-bridge.org instance here
See this as well. Restarting the app container throws the exception on line 134. Accessing from the same machine via curl also gives the exception. Accessing via wget or firefox gives the json feed.
Same here, last successful 2026-01-13 ~14:00 UTC
Details Type: RateLimitException Code: 0 Message: File: lib/utils.php Line: 264 Trace
#1 lib/RssBridge.php(39): RssBridge->{closure}()
#2 lib/RssBridge.php(37): BasicAuthMiddleware->__invoke()
#3 middlewares/BasicAuthMiddleware.php(13): RssBridge->{closure}()
#4 lib/RssBridge.php(37): CacheMiddleware->__invoke()
#5 middlewares/CacheMiddleware.php(44): RssBridge->{closure}()
#6 lib/RssBridge.php(37): ExceptionMiddleware->__invoke()
#7 middlewares/ExceptionMiddleware.php(17): RssBridge->{closure}()
#8 lib/RssBridge.php(37): SecurityMiddleware->__invoke()
#9 middlewares/SecurityMiddleware.php(19): RssBridge->{closure}()
#10 lib/RssBridge.php(37): MaintenanceMiddleware->__invoke()
#11 middlewares/MaintenanceMiddleware.php(10): RssBridge->{closure}()
#12 lib/RssBridge.php(37): TokenAuthenticationMiddleware->__invoke()
#13 middlewares/TokenAuthenticationMiddleware.php(10): RssBridge->{closure}()
#14 lib/RssBridge.php(34): DisplayAction->__invoke()
#15 actions/DisplayAction.php(54): DisplayAction->createResponse()
#16 actions/DisplayAction.php(89): RedditBridge->collectData()
#17 bridges/RedditBridge.php(119): throwRateLimitException()
#18 lib/utils.php(264)
Context Query: action=display&bridge=RedditBridge&context=single&r=[SUBREDDIT]&f=&score=-1&min_comments=-1&d=top&t=day&search=&frontend=https://old.reddit.com&format=Atom Version: 2025-08-05 OS: Linux PHP: 8.2.29
I spent some time testing this and found that it can be fixed by updating to the latest version of curl-impersonate (already done in https://github.com/RSS-Bridge/rss-bridge/commit/32cdf23693ce9a3e08f36e52c8f5c482c3ce4a04 which has not been released yet), switching the Dockerfile from ENV CURL_IMPERSONATE=chrome131 to ENV CURL_IMPERSONATE=firefox144, and then rebuilding the image. All of that has to be done manually right now, but hopefully that info helps someone.
I spent some time testing this and found that it can be fixed by updating to the latest version of
curl-impersonate(already done in 32cdf23 which has not been released yet), switching the Dockerfile fromENV CURL_IMPERSONATE=chrome131toENV CURL_IMPERSONATE=firefox144, and then rebuilding the image. All of that has to be done manually right now, but hopefully that info helps someone.
Yes, i was able to build the image as instructed and its working now. Thank you!
I spent some time testing this and found that it can be fixed by updating to the latest version of
curl-impersonate(already done in 32cdf23 which has not been released yet), switching the Dockerfile fromENV CURL_IMPERSONATE=chrome131toENV CURL_IMPERSONATE=firefox144, and then rebuilding the image. All of that has to be done manually right now, but hopefully that info helps someone.
For those who are using docker-compose/regular docker run command - you can also just add env variable and will have no need in patching Dockerfile.
@PowerSlime I tried setting the useragent in yaml, but without success - can you enlighten with an example, please?
@PowerSlime I tried setting the useragent in yaml, but without success - can you enlighten with an example, please?
This is my docker compose that is working fine just adding the environment variable:
services:
app:
image: rssbridge/rss-bridge:latest
container_name: rss-bridge
environment:
- CURL_IMPERSONATE=firefox144
volumes:
- /yourpath/rss-bridge/config:/config
ports:
- 3000:80
restart: unless-stopped
@Redux28 thanks a lot! Works for me, too.
@PowerSlime I tried setting the useragent in yaml, but without success - can you enlighten with an example, please?
This is my docker compose that is working fine just adding the environment variable:
services: app: image: rssbridge/rss-bridge:latest container_name: rss-bridge environment: - CURL_IMPERSONATE=firefox144 volumes: - /yourpath/rss-bridge/config:/config ports: - 3000:80 restart: unless-stopped
Started getting the same issue again today, using "tor145" instead of "firefox144" fixes the issue for now.
The issue is back. If I change the environment to other than tor145 or firefox144 (increasing the numbers) I get an error from rss-bridge.
Any clues?
The issue is back. If I change the environment to other than tor145 or firefox144 (increasing the numbers) I get an error from rss-bridge.
Any clues?
Yes, i am also having the same issue, the version of curl-impersonate used in the latest tag of rssbridge is 1.2.5 but the most recent version is is 1.5.6.
You can see supported browsers in the repo but some of the latest ones like safari/android, firefox147, etc are not supported by the 1.2.5 version so i cant test them.
I've spent some hours now, including version 1.5.6 in RSS-bridge and building my own Docker image.
And I can use newer versions now, but Reddit or, better yet, Cloudflare always triggers (even when I use a VPN). So, it seems that until someone implements Chromium in RSS-Bridge, I guess Reddit won't see me reading them further.
So sad that social media means a prison.
It appears the issue is not with curl impersonate, is that reddit disabled unauthenticated JSON requests.
I use the reddit bridge because it formats the posts much better than reddits direct .rss feeds but it seems that the direct rss feeds are next from what the admin says in that post.
The problem is that every user would need to register for the enhanced version (with OAuth for the JSON API) as a utility script for their very own purpose. Or the project maintainer does it once for all, with the risk that everyone can be locked out at once, if Reddit decides to lock the bridge.
isn't it better to savagely parse the webpage instead of playing nice and using the json api, then?
The problem is that every user would need to register for the enhanced version (with OAuth for the JSON API) as a utility script for their very own purpose. Or the project maintainer does it once for all, with the risk that everyone can be locked out at once, if Reddit decides to lock the bridge.
I agree, it would be sad. I self-host rss-bridge and it would still be a great help if I could supply my personal reddit user credentials to allow me to consume reddit via my miniflux rss reader.
Adding OAuth2 support might not fully help, unless you already have a "utility script app" set up and working. In order to create a new one you need to submit a request for access to the JSON API: https://old.reddit.com/wiki/api#wiki_read_the_full_api_terms_and_sign_up_for_usage
If you have a valid moderation use case, you should submit a request to create new apps with Reddit’s Data API.
Trying to set up a new "app" without if fails.
My already existing app does seem to work, so they didn't shut down old ones, just block creating new ones.
I made a draft PR if someone's interested, but you need to have an existing app to make it work: #5039