Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poison.ParseError at GET /auth/linkedin/callback Unexpected token at position 0: < #15

Open
mrinterestfull opened this issue Oct 1, 2021 · 0 comments

Comments

@mrinterestfull
Copy link

Hello,
Any idea what the issue might be or how to trouble shoot it. The error is not useful and I don't know how to get the real msg to see what the problem might be.

image

lib/poison/parser.ex
end

Errors

defp syntax_error(<token::utf8> <> , pos) do
raise %ParseError{pos: pos, value: <token::utf8>}
end
defp syntax_error(
, pos) do
raise %ParseError{pos: pos, value: ""}
end
Poison.Parser.value/3

This error appears after I did
mix deps.unlock --all
mix deps.update --all

certifi 2.8.0
cowboy 2.9.0
cowboy_telemetry 0.3.1
cowlib 2.11.0
exquisite 0.1.10
file_system 0.2.10
floki 0.30.1
gettext 0.18.2
hackney 1.18.0
html_entities 0.5.2
httpoison 0.13.0
idna 6.1.1
jason 1.2.2
metrics 1.0.1
mime 2.0.1
mimerl 1.2.0
oauth2 0.7.0
parse_trans 3.3.1
phoenix 1.5.13
phoenix_html 2.14.3
phoenix_live_dashboard 0.4.0
phoenix_live_reload 1.3.3
phoenix_live_view 0.15.7
phoenix_pubsub 2.0.0
plug 1.12.1
plug_cowboy 2.5.2
plug_crypto 1.2.2
poison 4.0.1
ranch 1.8.0
ssl_verify_fun 1.1.6
telemetry 0.4.3
telemetry_metrics 0.6.1
telemetry_poller 0.5.1
ueberauth 0.6.3
ueberauth_linkedin 0.3.2
unicode_util_compat 0.7.0

Reading online it looks like the error is cause when a response is not json, which means the html or something else.
I've went through the browser developer tools, and I see a

image

/oauth/v2/login-success?app_id=1231232&auth_type=AC&flow={"authorizationType":"OAUTH2_AUTHORIZATION_CODE","redirectUri":"http://localhost:4000/auth/linkedin/callback","currentStage":"LOGIN_SUCCESS","currentSubStage":0,"authFlowName":"generic-permission-list","appId":125808426,"scope":"r_liteprofile r_emailaddress","creationTime":1633055190237,"state":"q123I9DUjDo123DUCZiqTMH5fg=="}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant