RSS-Bridge / rss-bridge

The RSS feed for websites missing it
https://rss-bridge.org/bridge01/
The Unlicense
7.25k stars 1.03k forks source link

[TwitterBridge] problem with multiple words search #3180

Open jcmag opened 1 year ago

jcmag commented 1 year ago

Hi, I get an error 500 when I enter "mt crosby road" for a Twitter search:

Application Error

The application could not run because of the following error: Details Type: Exception Code: 500 Message: twitter: No results for this query. File: lib/error.php Line: 26 Trace

0 index.php(7): RssBridge->main()

1 lib/RssBridge.php(15): RssBridge->run()

2 lib/RssBridge.php(88): DisplayAction->execute()

3 actions/DisplayAction.php(148): TwitterBridge->collectData()

4 bridges/TwitterBridge.php(276): returnServerError()

5 lib/error.php(46): returnError()

6 lib/error.php(26)

Context Query: action=display&bridge=TwitterBridge&context=By keyword or hashtag&q=mt crosby road&format=Html Version: dev.2022-06-14 OS: Linux PHP: 7.4.29

it works with just "crosby road".

On twitter website the search for "mt crosby road" returns results: https://twitter.com/search?q=mt%20crosby%20road&src=typed_query&f=top

I don't understand what could be the problem...

em92 commented 1 year ago

Ping @arnd-s as maintainer of this bridge

arnd-s commented 1 year ago

I will try and take a look later today. Based on the reported issue and my own quick tests the problem is, when more then two search arguments are provided. The API returns in these cases a 500 http status code.

dvikan commented 1 year ago

See also https://github.com/RSS-Bridge/rss-bridge/issues/3161