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

Session expired or invalid #33

Open
Guitarbum722 opened this issue May 28, 2019 · 0 comments
Open

Session expired or invalid #33

Guitarbum722 opened this issue May 28, 2019 · 0 comments

Comments

@Guitarbum722
Copy link
Collaborator

What is the desired behavior when an OAuth token is expired/invalid?

For example, I created a session, initialized a Resource and then called resource.Query() in a loop on a 5 second delay just to simulate some typical usage by an automated client.

I logged into my Org and removed the client's session.

SFDC returns INVALID_SESSION_ID: Session expired or invalid, obviously. Thus, an error is returned (I assumed via the call to queryResponse().

  • Is there anything besides the error string I could inspect if this occurs?
  • Am I missing functionality that you've already implemented?
  • Is there a benefit to re-auth and/or letting the caller know that they should authenticate and retry?
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