10-30-2021 06:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-30-2021 06:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
My app has recently started to get an error code 1008 in the body when using the request token to get the access token and refresh token. Any idea what this means? Nothing has changed in the code. It just started doing it.
11-01-2021 10:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



11-01-2021 10:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi @vanmepper
1008 is not one of our standard http status codes. Was an error message provided with the 1008 error? Can you share the complete syntax of the endpoint and headers that you're attempting to execute that's causing the error? Note: Please don't post authorization codes or client secrets in the forums.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
11-01-2021 11:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-01-2021 11:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Gordon-C
Here is the error message. Maybe its due to cloudfare?
Here is me calling the function.
This is from my test environment. Its identical on my live platform but obviously with the authentications different and domain also different. if its not your side (I can call this function from local host without a problem) then maybe it is cloudfare problem?

11-01-2021 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



11-01-2021 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The resolution of the pictures is a little fuzzy. I would guess it might be an error from cloudflare. The error does seem to be coming from them. Looking at the information on their website, https://support.cloudflare.com/hc/en-us/articles/360029779472-Troubleshooting-Cloudflare-1XXX-errors... I'm going to guess we cannot reach your redirect URL, since it seems to work for localhost. I would check if the endpoint specified for your redirect URL can be pinged and is accessible to the outside world.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

11-01-2021 18:13 - edited 11-01-2021 18:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-01-2021 18:13 - edited 11-01-2021 18:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Okay thanks! I did check the error code 1008 and they said its possible my application was IP banned by fitbit but that didn't make sense. Seems to break when fitbit tries to respond. I will go to cloudfare and see if they have ideas.

