Hi Sae, Have you received approval for using xAuth in your application yet by emailing [email protected] ? I'm not familiar enough with Objective-C to understand the error, but your signature base string and authorization header look otherwise correct on first glance.
Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Tue, Apr 20, 2010 at 1:13 PM, sae <[email protected]> wrote: > Hi, > I just set up my application for xauth and started testing. > It keeps failing with error message: > > Error Domain=NSURLErrorDomain Code=-1012 UserInfo=0x268d70 "Operation > could not be completed. (NSURLErrorDomain error -1012.) > > What is this error? Is anything wrong with my app setting, or my > parameter may not be correct? > Any clue will be really appreciated... > > > Here is the copy of signature-base-string and authorization header, > which all look ok to me: > > POST&https%3A%2F%2Fapi.twitter.com%2Foauth > %2Faccess_token&oauth_consumer_key%3Dxxxxxxxxxxxxxx%26oauth_nonce > %3D684B1D0C-4276-47BD-9A43-C31FDDD0DD8A%26oauth_signature_method > %3DHMAC-SHA1%26oauth_timestamp%3D1271708678%26oauth_version > %3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3Dxxxxxx > %26x_auth_username%3Dyyyyy > > OAuth realm=\"\", > oauth_consumer_key=\"xxxxxxxxxxxxxxxx\", > oauth_signature_method=\"HMAC-SHA1\", > oauth_signature=\"rg5s%2BW8wMxSx5MJt0wV3idqjriI%3D\", > oauth_timestamp=\"1271708678\", > oauth_nonce=\"684B1D0C-4276-47BD-9A43-C31FDDD0DD8A\", > oauth_version=\"1.0\"; > > > -- > Subscription settings: > http://groups.google.com/group/twitter-development-talk/subscribe?hl=en >
