How to handle accounts going into stopped or invalid state.

It is important to have a mechanism in place to capture when accounts go into a stopped / invalid state. Most problems relate to customers not checking the sync_state of the account . 

 

Note: Every account will hit this state at some point.

 

Requirements:

  • The developer of the application needs to build this logic

 

Instructions:

  • Ensure your application has webhooks enabled 
  • If you receive an account.invalid webhook
  • Via your APP or email prompt the user to reauthenticate
  • If after re-authenticating account goes into the same state, check the AUTH, API and SYNC logs in the dashboard. Search this site for the error.
  • If they do not expose any obvious errors, contact Nylas support 

 

Outcome:

You should now have an automated method

 

Resources:

Why is the account stopped or invalid?

When sending an email I receive a 401 error?

https://developer.nylas.com/docs/support/troubleshooting/enable-stopped-accounts/ 

https://developer.nylas.com/docs/support/troubleshooting/uidvalidity/ 

 

 

 

 

Updated

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.