-
Notifications
You must be signed in to change notification settings - Fork 165
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
Setting includeReplies to nil fails in user streams #44
Comments
I cannot reproduce the issue. I just tried with TweetDeck consumer tokens and XAuth and requested the user stream as you did. I immediately get a dictionary with a single 'friends' key. When the user posts something, I immediately receive the tweet. Please ensure to be using the latest version. Also, ensure your consumer tokens are allowed to use the streaming API. If it still doesn't work, please consider making a sample, minimal project that I can run and debug. Thank you. |
Hmm. I'll check again, but setting it to @yES returns everything just fine, all replies of everybody included. Setting it to nil gets the same results as before. I'll report back when i try again. |
In order to ease your tests, you may want to run this code:
This is what I get here:
|
I tried the above in the demo project, replacing the keys with mine, and it still errors out. I do have the latest version of STTwitter. I also tried using the demo app's keys, and the same thing still happens. Here is what's returned:
Am I missing something regarding how my app is supposed to be set up in Twitter's application settings? |
The streaming API is not available to all applications, but you said your application was able to use it. I uploaded a working test project using TweetDeck tokens http://seriot.ch/temp/STTwitterStreaming.zip. You should get the stream after entering your login and password. If it still doesn't work, then maybe you IP is temporarily banned for some reason. Try to print the response headers. Also, maybe you have a special character in your password or something? We'll find out :-) |
I changed my password to the simplest password123 i could think of to eliminate special characters, ran the project after inserting my user/pass, and guess what? Same error! However, when i went back to my project and tried again, I managed to get two streamed tweets back, then the same error, running on device, on LTE (unlimited data, and not on my home network). I've made sure i'm not calling the method multiple times or anything like that, so I don't think it's an IP ban thing as wouldn't that also affect the stream where all replies are included? For the record, this is the error in full I get back
Edit: Could it be an NSURLCache issue? I do have a cache set up in my app, but it should only cache images... |
Ok so I think the problem is not related to the |
I removed the timeout for all requests ac58d48. |
Yes it's fixed! Thank you for your support, I would probably not have thought it was a timing problem! 👍 |
I'm calling
and it returns a timeout error. I might be mistaken but isn't setting includeReplies to nil supposed to return only mutual follow replies as described in the Streaming API docs?
The text was updated successfully, but these errors were encountered: