codingcyclist / ha_strava

Pipe your Activity Data from Strava directly into Home Assistant
MIT License
76 stars 29 forks source link

I get this error message when i put in my credentials #18

Open JePeSWE opened 3 years ago

JePeSWE commented 3 years ago

{"message":"Bad Request","errors":[{"resource":"Application","field":"redirect_uri","code":"invalid"}]}

This addon dont work?

codingcyclist commented 3 years ago

Hi @JePeSWE the first thing I'd verify is whether your Home Asisstant's external URL matches what you specified as the authentication callback domain for your Strava API application (see screenshot).

In particular, as the name suggest, the authentication callback DOMAIN's syntax is slightly different from your HA external URL. In fact, the domain is only a particular fraction of the URL. It’s anything between the http:// (or https://) and the first “/” of the path in your URL. E.g. if you entire external URL is https://xyz.ui.nabu.casa/, the the callback domain (which you have to put into Strava) is “xyz.ui.nabu.casa”

image

I hope that helps.

sam-ward commented 3 years ago

I just hit the same problem @codingcyclist. What I realised is it will throw that error if you try to add the integration while using the internal URL in your browser / app (homeassistant.local). When I pointed the browser at the external URL, and then tried adding the integration again, it worked fine.

jouster1974 commented 2 years ago

I've got this working fine on an existing setup, but when I try to set up on a new device (complete fresh build) i manage to get to the authorisation page...but when clicking authorise, I get a screen saying the following

500 Internal Server Error

Server got itself in trouble

Is this a Strava issue? or something on my own end?

Please ignore...after googling a bit more, and finding someone else with the same issue...it was because when selecting the client secret...an extra space was copied and therefore pasted...but now all good....

Thanks again for a great integration....lets me bore my mates even more than I usually do

woolf0007 commented 2 years ago

did you solve this problem?: {"message":"Bad Request","errors":[{"resource":"Application","field":"redirect_uri","code":"invalid"}] I have same pr...

Dreejt commented 1 year ago

Same error here, it's not working:

{"message":"Bad Request","errors":[{"resource":"Application","field":"redirect_uri","code":"invalid"}]}