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

Intermittent NullReferenceException when accessing BusinessNoteStore #27

Open
Thomas-Fleming opened this issue Jul 8, 2016 · 1 comment

Comments

@Thomas-Fleming
Copy link
Contributor

I have a service that polls the Evernote every few minutes for updates to a users account. I'm getting an intermittent NullReferenceException on the following line of code:

ENSessionAdvanced.SharedSession.BusinessNoteStore;

StackTrace:

at EvernoteSDK.ENSession.get_IsBusinessUser()
at EvernoteSDK.ENSession.get_BusinessNoteStore()
at EvernoteSDK.Advanced.ENSessionAdvanced.get_BusinessNoteStore()

Catching the exception and trying again soon after seems to continue fine.

@Thomas-Fleming
Copy link
Contributor Author

Thomas-Fleming commented Jul 21, 2016

Update: This appears to happen under 3 scenarios:

  1. The user has exceeded their maximum number of hourly API calls
  2. The developer token is invalid
  3. Unknown - possibly the business token (the one valid for an hour) has expired and the client tries to access the API before renewing it?

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