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

Twitter list by nadrieril failed with error 400 #1715

Closed
Nadrieril opened this issue Aug 23, 2020 · 5 comments
Closed

Twitter list by nadrieril failed with error 400 #1715

Nadrieril opened this issue Aug 23, 2020 · 5 comments
Labels
Bug-Report Confirmed bug report Feature-Request Issue is a feature request

Comments

@Nadrieril
Copy link

I use Twitter lists to easily manage which users' tweets I want to get as RSS feeds. Since two weeks ago, some (but not all) of my lists are failing with the error Trying to get property 'id_str' of non-object.

The failing query string is: ?action=display&bridge=Twitter&context=By+list&user=nadrieril&list=cool_math&filter=&format=Json.
This is on my self-hosted instance, running on commit 25cff9c.

This list fails, but this one works, and I have no idea why. It also seems that any new list I add fails.

php-fpm log:

Aug 23 22:12:11 ttrss nginx[25357]: 2020/08/23 22:12:11 [error] 25359#25359: *787 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined property: stdClass::$list in /nix/store/ay41qhcrfa7iqhl66h46ayqwcggrmf6h-rss-bridge-master/bridges/TwitterBridge.php on line 497PHP message: PHP Notice:  Trying to get property 'id_str' of non-object in /nix/store/ay41qhcrfa7iqhl66h46ayqwcggrmf6h-rss-bridge-master/bridges/TwitterBridge.php on line 497PHP message: Exception: The requested resource cannot be found!
Aug 23 22:12:11 ttrss nginx[25357]: Please make sure your input parameters are correct!
Aug 23 22:12:11 ttrss nginx[25357]: cUrl error:  (0)
Aug 23 22:12:11 ttrss nginx[25357]: PHP error: Trying to get property 'id_str' of non-object in /nix/store/ay41qhcrfa7iqhl66h46ayqwcggrmf6h-rss-bridge-master/lib/error.php:24
Aug 23 22:12:11 ttrss nginx[25357]: Stack trace:
Aug 23 22:12:11 ttrss nginx[25357]: #0 /nix/store/ay41qhcrfa7iqhl66h46ayqwcggrmf6h-rss-bridge-master/lib/contents.php(206): returnError('The requested r...', 400)
Aug 23 22:12:11 ttrss nginx[25357]: #1 /nix/store/ay41qhcrfa7iqhl66h46ayqwcggrmf6h-rss-bridge-master/bridges/TwitterBridge.php(477): getContents('https://api.twi...', 'HTTP/2 400 \r\nca...')
Aug 23 22:12:11 ttrss nginx[25357]: #2 /nix/store/ay41qhcrfa7iqhl66h46ayqwcggrmf6h-rss-bridge-master/bridges/TwitterBridge.php(198): TwitterBridge->getApiContents('https://api.twi...')
Aug 23 22:12:11 ttrss nginx[25357]: #3 /nix/store/ay41qhcrfa7iqhl66h46ayqwcggrmf6h-rss-bridge-master/actions/DisplayAction.php(134): TwitterBridge->collectData()
Aug 23 22:12:11 ttrss nginx[25357]: #4 /nix/store/ay41qhcrfa7iqhl66h46ayqwcggrmf6h-rss-bridge-master/index.php(38): DisplayAction->execute()
Aug 23 22:12:11 ttrss nginx[25357]: #5 {main}" while reading response header from upstream, client: 10.8.44.4, server: <redacted>, request: "GET /?action=display&bridge=Twitter&context=By+list&user=nadrieril&list=cool_math&filter=&format=Json HTTP/2.0", upstream: "fastcgi://unix:/run/phpfpm/rss-bridge.sock:", host: "<redacted>", referrer: "https://<redacted>/"
@Nadrieril
Copy link
Author

Interestingly, this is correlated with the existence of https://twitter.com/nadrieril/lists/wholesome and inexistence of https://twitter.com/nadrieril/lists/cool_math . I have no idea what causes one to work and the other to fail, except that the one that fails was created later.

@em92 em92 added the Bug-Report Confirmed bug report label Aug 24, 2020
@em92 em92 pinned this issue Aug 24, 2020
@em92 em92 unpinned this issue Aug 24, 2020
@em92
Copy link
Contributor

em92 commented Aug 24, 2020

@Nadrieril
Copy link
Author

Oh wow, that does work! Is there a known rule for Twitter changing symbols like that?
As a fallback I would like it if it was possible to give a list ID directly to rss-bridge instead of going via username & list name

@em92
Copy link
Contributor

em92 commented Aug 25, 2020

Is there a known rule for Twitter changing symbols like that?

I don't know. Just remembered that slug is expression, where chars that are not alphabetical or numbers are converted to "-".

As a fallback I would like it if it was possible to give a list ID directly to rss-bridge instead of going via username & list name

Agree with suggestion. I will add "feature-request" tag to this issue. Maybe someone will implement it.

@Nadrieril
Copy link
Author

Fixed by #1834, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug-Report Confirmed bug report Feature-Request Issue is a feature request
Projects
None yet
Development

No branches or pull requests

2 participants