Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NSURLErrorDomain Code=-1012 in iOS

HI Im trying to integrate fitbit api into my IOS app, according to that i got API key and Secret key from fitbit.com , I'm following this code https://github.com/KaranRajpoot/FitBit , in that code they said just replace the API key and Secret key, i did like that, but I'm getting following error while login,

Error: NSURLErrorDomain Code=-1012 "The operation couldn’t be completed

so im stuck at this point, so can anyone help me to overcome from this, or is there any example code for ios platform,

 

Thanks.

Best Answer
0 Votes
1 REPLY 1

Hello, is this all information you're getting from fitbit response.

This error looks very veird and does not really seems that it comes from Fitbit API server.

Can you please post here complete response with headers that you're getting from Fitbit API?

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes