RSS-Bridge / RSS-Bridge/rss-bridge
Multiple Reuters bridges throwing a 401 error
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 9.2k
- Forks
- 1.2k
- Avg merge
- 12h 45m
- Merged PRs (30d)
- 2
Description
Describe the bug
when I'm trying to generate any Reuters, I get greeted with a 401 error. I noticed it when my Europe feed stopped updating, but the same problem comes up with virtually every other category I've tried.
To Reproduce
- go to https://rss-bridge.org/bridge01/
- pick "Reuters" bridge
- select "europe" category (which, by the way, is the only one starting with a small letter, the rest of them are capitalised)
- witness the error code:
Type: HttpException
Code: 401
Message: https://www.reuters.com/pf/api/v3/content/fetch/articles-by-section-alias-or-id-v1?query={"section_id":"\/world\/europe","size":30,"website":"reuters","fetch_type":"section"} resulted in 401 Unauthorized
File: lib/http.php
Line: 36
Trace
#0 index.php(68): RssBridge->main()
#1 lib/RssBridge.php(39): RssBridge->{closure}()
#2 lib/RssBridge.php(37): CacheMiddleware->__invoke()
#3 middlewares/CacheMiddleware.php(44): RssBridge->{closure}()
#4 lib/RssBridge.php(37): ExceptionMiddleware->__invoke()
#5 middlewares/ExceptionMiddleware.php(17): RssBridge->{closure}()
#6 lib/RssBridge.php(37): SecurityMiddleware->__invoke()
#7 middlewares/SecurityMiddleware.php(19): RssBridge->{closure}()
#8 lib/RssBridge.php(37): MaintenanceMiddleware->__invoke()
#9 middlewares/MaintenanceMiddleware.php(10): RssBridge->{closure}()
#10 lib/RssBridge.php(37): BasicAuthMiddleware->__invoke()
#11 middlewares/BasicAuthMiddleware.php(13): 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(90): ReutersBridge->collectData()
#17 bridges/ReutersBridge.php(502): getContents()
#18 lib/contents.php(118): HttpException::fromResponse()
#19 lib/http.php(36)
Expected behavior
a ready-to-import config for your RSS reader of choice
Desktop (please complete the following information):
- OS: Linux
- Browser: Firefox 136
Additional context
the feeds that don't show the 401 error are in turn affected by #4463
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Reuters bridge failure using the Europe category and inspect bridges/ReutersBridge.php around collectData() and lib/http.php:36, where the reported 401 originates. Determine how the Reuters request is currently formed and verify that Reuters categories produce a ready-to-import feed instead of returning 401 Unauthorized.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100