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

Verifying a subscriber through ngrok

Greetings folks!  I'm writing an app that requires a webhook to be set up.  I am using `ngrok` locally to create a tunnel to my machine, which is running a local node.js app with express. 

 

I created a new Subscriber, wrote the code laid out in https://dev.fitbit.com/build/reference/web-api/developer-guide/using-subscriptions/#Verifying-a-Subs... and clicked the "verify" button.  On my local web server I am seeing two requests come through - I respond to the one with the correct verification code with a 204 and no content, and I can see the 404 coming back for the verification code that doesn't match.  Everything on my end appears to be peachy 🙂

 

However .... nothing updates or changes on the web UI for the app at https://dev.fitbit.com/apps/details/<redacted>.  The Verify button just sits there.... pink, mocking me.  Is there any way for me to debug this?  The only thing I can think of at this stage is that ngrok is somehow creating problems.  Thank you!

Best Answer
0 Votes
3 REPLIES 3

Hi @justinblat 

 

I need to collect some information from you to conduct some research on my side.  I will reach out to you directly.

 

Gordon

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

Ngrok has worked for us no problems. Must be something else in your setup.

Best Answer
0 Votes

To circle back on this problem, the application sent us the 204 response but it was missing the 404 response.

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