Error message: Requested username can't be found.
Query string: action=display&bridge=Twitter&u=bbcbreaking&format=Mrss
Version: git.master.a11ec49
Also getting
Bridge returned error 302! (18102)
on every other username, on multiple rss-bridge hosts.
Could be a change in Twitter causing this.
I'm also getting multiple Bridge returned error 302! (18102) on multiple twitter feeds :/
I am seeing the same.
I don't know what the Twitter behaviour was before now, but it appears the first HTTP request results in a session cookie being set, then the client is 302 redirected to the same URL (https://twitter.com/username), the second time sending the session cookie.
What we are seeing now is an infinite loop where we keep being 302 redirected to the same URL without setting and sending the required session cookie.
Disclaimer: My PHP is hacky, use at your own risk, this shares cookies in a multi-user environment, it probably enables tracking for all bridges, including Twitter, etc. It's going to break every time that /tmp is emptied. Oh, and you're going to have to clean up the mess yourself every time there's a conflict with trunk. This is really only intended for the most critical of issues.
/lib/contents.php, L87, add the following:
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookie.jar');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookie.file');
Change your filenames as desired, I had to create the files with touch before they could be used.
It's not pretty, it's probably not the safest, and I wasn't sure how to put it through CacheFactory, which is probably where it's better dumped, but it works, and maybe it gives a proper fix a springboard to work from.
Edit: Fixed my slashes, added warning.
I have the same issue on regular setup only for twitter.
@pmaziere developped this bridge
@linoth that would be of no use to me since I am using the file_get_contents() method of fetching as defined in line 58 of /lib/contents.php.
The fix done by @Roliga (#1226) works.
I may be wrong but I believe the correct way to fix this is to fetch the cookies in TwitterBridge and then pass them to getSimpleHTMLDOM() via collectData() in TwitterBridge.
I know file_get_contents() in getContents() doesn't currently make use of headers but I can add a PR for that code in myself once the cookies are passed in.
Most helpful comment
I'm also getting multiple Bridge returned error 302! (18102) on multiple twitter feeds :/