Auth0 Home Blog Docs

Invalid response code from the auth0-sandbox: HTTP 400. Unexpected token ILLEGAL

login
error

#1

Hi, since few days I can’t login anymore through Linkedin or Facebook with a specific account (mine). When I test with any other user account (impersonate) there is no problem. After trying to catch the passport strategy error, I found this error as callback query param :
“Invalid response code from the auth0-sandbox: HTTP 400. Unexpected token ILLEGAL”.
I have no idea why I can’t connect with my Facebook or Linkedin… Google and Auth0 (login/password) works fine.


HTTP 400. Unexpected token ILLEGAL
#2

That may be related to the actual user profile information being returned for your account by Facebook and LinkedIn; if I recall correctly there’s an issue where if your profile data in the Facebook or LinkedIn contains this character or this one then that error will be triggered. You should review the profile being returned in those two cases to see if this can explain it.


#3