Spring Boot Google OAuth error

Im getting a java.lang.IllegalArgumentException: Invalid character found in the request target [/login?error=[authorization_request_not_found] ]. The valid characters are defined in RFC 7230 and RFC 3986 error when I try to login with google oauth setup on my spring backend.

Here is my security config and oauthsuccess handler https://pastebin.com/raw/wKCKjxnN

any help, please?
Was this page helpful?