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

Currently unable to generate tokens via the OAuth Tutorial

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.

Best Answer
0 Votes
1 REPLY 1

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.   

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes