Skip to main content
Answered

redirect_uri invalid

  • February 24, 2026
  • 4 replies
  • 39 views

Alfersam
Forum|alt.badge.img+1

Hola a tod@s y gracias de antemano.

Mi Api ha sido recientemente aprobada para la conexión de más usuarios y a la hora de conectarse me da este error en la app.

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

el al consola me aparece este otro

authorize?client_id=201273&response_type=code&redirect_uri=https%3A%2F%2Falfersam-byte.github.io%2F…:1  Failed to load resource: the server responded with a status of 400 ()

Mi configuración en Strava:

  • Authorization Callback Domain: localhost,alfersam-byte.github.io
  • Website: https://alfersam-byte.github.io/MyBikeGestor/

URL exacta que uso: https://www.strava.com/oauth/authorize?client_id=201273&response_type=code&redirect_uri=https%3A%2F%2Falfersam-byte.github.io%2FMyBikeGestor%2F&approval_prompt=force&scope=read,activity:read_all,profile:read_all&state=strava_auth

He probado en modo incógnito y el error persiste, así que no es una extensión del navegador.

Best answer by npatch

Comma separated domains don’t seem to work. Remove localhost from the  Authorization Callback Domain. I think I had the same issue when I was trying to get the api to fully integrate in Postman with automated oauth2.

4 replies

Jan_Mantau
Superuser
Forum|alt.badge.img+27
  • Superuser
  • February 24, 2026

What happens if you don’t use URL encoding but :// and / in the redirect URL?


Alfersam
Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • February 25, 2026

Gracias por tu ayuda ​@Jan_Mantau , el error persiste, yo como desarrollador me conecté a Strava sin problema, el error vino después de la aprobación por parte de Strava del aumento de las conexiones. Yo estoy conectado sin ningún problema.


Forum|alt.badge.img+3
  • Hub Rookie
  • Answer
  • February 25, 2026

Comma separated domains don’t seem to work. Remove localhost from the  Authorization Callback Domain. I think I had the same issue when I was trying to get the api to fully integrate in Postman with automated oauth2.


Alfersam
Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • February 26, 2026

Muchas gracias ​@npatch ya está funcionando, le quité el “Localhost” y listo, fallo de principiante.