ha_strava icon indicating copy to clipboard operation
ha_strava copied to clipboard

I get this error message when i put in my credentials

Open JePeSWE opened this issue 4 years ago • 5 comments

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

This addon dont work?

JePeSWE avatar Dec 11 '20 21:12 JePeSWE

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.

codingcyclist avatar Dec 20 '20 11:12 codingcyclist

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.

sam-ward avatar Jan 11 '21 06:01 sam-ward

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

jouster1974 avatar Dec 18 '21 18:12 jouster1974

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

woolf0007 avatar Mar 08 '22 19:03 woolf0007

Same error here, it's not working:

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

Dreejt avatar Jan 29 '23 23:01 Dreejt