-
Notifications
You must be signed in to change notification settings - Fork 0
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
Expired Token issue? #12
Comments
Omg I got that bug yesterday. Ridiculously frustrating. Did you get it locally or on heroku? |
heroku, got around it by going to /about |
Same! We need to fix that ASAP. Work tonight? If you get an exception could On Mon, Jul 2, 2012 at 2:13 PM, Andrew McGlathery <
|
I can't really work much tonight, but it is really easy to redirect to login on an exception. The one problem is reproducing it... |
Right...I don't remember the line # either. On Mon, Jul 2, 2012 at 2:18 PM, Andrew McGlathery <
|
My guess is that it is from trying to se an expired auth token, so just putting try except statements around all of the calls to Evernote should do it. |
I've had this issue before with facebook tokens, it's probably the same issue. I'm assuming you're still working on sandbox? The fix is to refresh the token (there's an API call for that) when there's some amount of time left such as 1 day. Store the token expires time in the database and use that. |
We are on production now! Due date is tonight. Can you refresh an expired On Mon, Jul 2, 2012 at 4:16 PM, Ammar Khaku <
|
I don't know, you might have to refresh it before it expires. Use the expires_time to check whether it will expire within 24 hours. I'm gonna see if I can find the API call... |
Nevermind, according to seth, you can't refresh tokens. You shouldn't have this problem with production tokens though, they're valid for a year. It'll be a year before this breaks...right? |
Even on the production our token says only good for 1 day. I checked and
|
Remove your current token from the database and re-authorize with Evernote. It should get you a new one that's valid for a year |
I think I found the issue. Google Instant destroys the page by somehow On Mon, Jul 2, 2012 at 5:16 PM, Ammar Khaku <
|
Sometimes, if a user has not logged out, they cannot get to the login page at all, or any page that requires login. (They get an EDAM user exception)
The text was updated successfully, but these errors were encountered: