0
votes

I created a client ID in the Google Developer Console and specified the same URL in my program and still it is getting the error.

Error: invalid_request

Invalid parameter value for redirect_uri: Uri must consist of printable ASCII characters:

This is my URI: localhost:81/public/login/CheckLogin.

1
Your URI contains unprintable characters. I suspect tabs and/or carriage returns. Until you provide the code you try to execute, nobody could say more. - Aleksei Matiushkin

1 Answers

0
votes

Make sure it's URL-encoded. Try using the PHP urlencode function. Also, it doesn't like even URL-encoded spaces (just to let you know).