01-08-2024 03:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-08-2024 03:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Currently attempting to generate a token in the OAuth tutorial page :
https://dev.fitbit.com/build/reference/web-api/troubleshooting-guide/oauth2-tutorial
When the page first loads it's giving a 404 for the oauth2-tutorial.js :
oauth2-tutorial:339
GET https://dev.fitbit.com/build/reference/web-api/oauth2-tutorial.js net::ERR_ABORTED 404 (Not Found)
oauth2-tutorial:1 Refused to execute script from 'https://dev.fitbit.com/build/reference/web-api/oauth2-tutorial.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
When I fill in the Client ID and Client Secret and then click the PKCE Code Verifier GENERATE button no text is generated into the text box. Unable to generate access tokens.

01-08-2024 14:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-08-2024 14:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @alexlaverty
Which web browser are you using to open the page?
I was able to log the OAuth 2.0 Tutorial by clicking on the link in the documentation, which takes me to the same page that you referenced, https://dev.fitbit.com/build/reference/web-api/troubleshooting-guide/oauth2-tutorial/. You could try going to the Troubleshooting Guide page, https://dev.fitbit.com/build/reference/web-api/troubleshooting-guide/, and click on the link as I did.
Since the error is occurring on the *.js file, I wonder if your browser security does not allow for javascript files to be loaded.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

