FitBit unable to authorize


Hi all, I am trying to setup the fitbit component and have followed the directions here:

I am getting the error

The app you’re trying to connect did not provide valid information to Fitbit. Please report this issue to them.
Developer information: invalid_request - Invalid redirect_uri parameter value
On the last step.

Currently my HA is behind Nginx which has SSL and forwards the connection from 443 to 8123 on the HA host.

I have updated the fitbit callback URL to but to no avail.

My fitbit.conf settings are correct.


I hit this same issue. I noticed the redirect_uri being emitted from Home Assistant included the port, while the URL provided by the configuration step didn’t.

I updated the application callback URL on the FitBit side of the application setup to include 443 and it work. So i.e.


would you mind posting your (redacted) nginx configuration for this please? I’m also struggling to get this redirect working.


As I do not want to expose my to the real internet, could you tell me how to change the callback url to somewhere else ?
As example I have an internet page and I placed it there (I did similar approach for nibeUplink scripts)


I have also problems with fitbit and configuring in homeassistant…

I receive the following error:

500 Internal Server Error

Server got itself in trouble