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

Update version 0.0.6 in cocoapods and fix timeout in master #51

Closed
alexburkhay opened this issue Nov 28, 2013 · 4 comments
Closed

Update version 0.0.6 in cocoapods and fix timeout in master #51

alexburkhay opened this issue Nov 28, 2013 · 4 comments

Comments

@alexburkhay
Copy link

Current version 0.0.6 in cocoapods should be updated because in master already fixed assertion call when method signRequest:isMediaUpload:oauthCallback: gets oauthNonce-> random32Characters:

NSString *randomString = [self randomString]; - somehow this returns not the result from class method randomstring it always less then 32 characters long (for ex. 174172792)
NSAssert([randomString length] >= 32, @"");

So when i call getUsersShowForUserID after login it always crashes.

Master version:
method getUsersShowForUserID:orScreenName:includeEntities:successBlock... now always returns error:
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0xfe5dc20 {NSErrorFailingURLStringKey=https://api.twitter.com/1.1/users/show.json?user_id=...&screen_name=...&include_entities=0, ... NSUnderlyingError=0xfea7810 "The request timed out."}
but in current 0.0.6 it works fine - maybe there was mistake in commit about changing timeout in requests. I'll check this later.
Thanks

@nst
Copy link
Owner

nst commented Nov 28, 2013

Yes, I'll create version 0.0.7 today.

@alexburkhay
Copy link
Author

I forget to mention that im using STTwitterOAuth.
Ok, i see that when i comment string

r.timeoutSeconds = 0;

in method twitterRequestWithURLString (STHTTPRequest+STTwitter.m) ... getUsersShowForUserID works fine

@nst
Copy link
Owner

nst commented Nov 28, 2013

CocoaPods/Specs#5761

@nst nst closed this as completed Nov 28, 2013
@alexburkhay
Copy link
Author

Master version:
method getUsersShowForUserID:orScreenName:includeEntities:successBlock... now always returns error:
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0xfe5dc20 {NSErrorFailingURLStringKey=https://api.twitter.com/1.1/users/show.json?user_id=...&screen_name=...&include_entities=0, ... NSUnderlyingError=0xfea7810 "The request timed out."}
and this happens only on iOS5 ;)

@nst nst reopened this Nov 29, 2013
@nst nst closed this as completed in 41fff22 Nov 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants