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

Status Code: 400 when trying to add alarm

Hi, Fitbit team. I am trying to add alarm on my devices. 

But I got this error: 

Error Domain=com.alamofire.error Code=-6003 "Response status code was unacceptable: 400" UserInfo={NSLocalizedFailureReason=Response status code was unacceptable: 400}

 

Any suggestion for this? 

Thanks

Best Answer
0 Votes
1 REPLY 1

I just fixed the error 400 by removing encoding in .JSON when using Alamofire in iOS

 

However, I ran into another error, here is the response:

{\"errors\":[{\"errorType\":\"request\",\"fieldName\":\"500\",\"message\":\"An error occurred with the Fitbit API while processing the request. Please contact api@fitbit.com for assistance. Please reference error id: ADF537F4:B524_A92D900A:01BB_57013F58_EDC375BB:483E\"}],\"success\":false}")

 

just wondering what specific error does this id refer to?

I couldn't find any documents about error id on Fitbit's website.

 

Thanks!

Best Answer
0 Votes