07-08-2016 18:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-08-2016 18:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Trying to set an alarm via:
https://api.fitbit.com/1/user/-/devices/tracker/xxx/alarms.json
I first tried sending json data using 'Content-Type application/json' header, but I kept getting validation errors that required fields were not passed.
Then I switched to 'multipart/form-data' and that first worked with some validation error, then just started throwing 500 all the time.
Has anyone been able to create alarms for devices via the API?
07-08-2016 19:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-08-2016 19:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Just tried using the Fitbit API console that emulates hitting the API - same thing, once validation errors are taken care of, I'm getting 500 error.
08-14-2017 23:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-14-2017 23:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The first thing you need to know about an "Internal Server Error" is that the error can only be resolved by fixes to the Web server software. It is not a client-side problem meaning that the problem is not with our plugin. This is a 'catch-all' error generated by the Web server. Basically something has gone wrong, but the server can not be more specific about the error condition in its response to the client. In addition to the 500 error notified back to the client, the Web server should generate some kind of internal error log which gives more details of what went wrong. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.

