-
Notifications
You must be signed in to change notification settings - Fork 5
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
userAccessTokenParser: failed to parse #2
Comments
@tungd Can you give a sample reproducible code (preferable using Stack interpreter script) ? |
Also what version of |
Here you go (You will need app ID and secret though): https://gist.github.com/tungd/c3acfbd10e543a872c3caabe37245f3f I'm using fb version 1.1.1, Stack resolver is lts-8.13 |
@tungd That code works for me. My guess is that you are using an old version of
By the way, your program goes into infinite redirect loop. So I adjusted the code slightly (and also my callback urls are different):
|
@tungd Thanks for digging in. It will take two or three days for me to come back to this issue. I would be willing to accept a PR, if possible. :) |
@tungd Can i know how are you revoking the token ? |
I revoke the token by going to "Settings -> Apps" and remove the app from "Logged in with Facebook", or you can use the logout link from API. |
@tungd I need a more clear way of reproducing it (with each and explicit step, however trivial it may be). Righ now, if I revoke the token, all I get is this exception:
|
I'm also having this issue, however, revoking the token didn't work. Note that the token comes with a
|
If you can say the exact steps for me to reproduce, I will try fixing it
once I get some time. Patches are also welcome!
…On Sat, Jun 3, 2017, 9:41 AM Patrick Augusto ***@***.***> wrote:
I'm also having this issue, however, revoking the token didn't work. Note
that the token comes with a expires_in field:
userAccessTokenParser: failed to parse "{\"access_token\":\"EAAWWvaV5DiEBADZBeiq7k5OITDWVGsoyQ9lKjmMsmu8EkrbNag0qSZBBglpAZADOUhtBZBdhqrIC7zppXCTkOPtDhyG49IleXZC5K8MAdaPLb81ScVDVTs81HxJrT6VmuLD6aVhq4XjtOP4GCBL8zEbu5wj8zSbYZD\",\"token_type\":\"bearer\",\"expires_in\":5184000}"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAtAxWIGDFaEhnxG5i2VGp0lrABmdy-nks5sANQygaJpZM4NaCJj>
.
|
@psibi, I was using |
Had same parse exception as @tungd (see below) and resolved it as suggested by revoking the app token under "Settings > Apps". Seems like FB doesn't send or set an "expires_in" for first time app authentication. Could this possibly be resolved using a
|
Just created a new "Test" app from my existing app thinking I could reproduce the exception, but even though it is a "new" application it sends the |
@mschristiansen Just to be sure, what |
I think it only happens when the Facebook app is new, which seems to fit with the other reports of this error, but I haven't been able to otherwise confirm it -- it didn't happen when I created a new "test" app. |
Do you mean if I try creating a new app and then revoke the token and then try running the example code - I will be able to reproduce the bug ? |
Just tried with a new app and the bug didn't manifest. Can't say how to reproduce and no longer experiencing it. Will post again if I do. |
Hi, I bump into this issue trying authenticate using server-side login flow. Apparently my token only have "access_token" and "token_type", but now "expires_in". I also find an old issue here that's might be relevant: prowdsponsor/yesod-auth-fb#5.
The text was updated successfully, but these errors were encountered: