Skip to contentSkip to navigationSkip to topbar
On this page

Conflicting user modification



ERROR: 50213

error-50213 page anchor
PROGRAMMABLE CHAT
ERROR

The requested user is already being added or removed from this service instance concurrently with another API request. The last request will be rejected to avoid inconsistent state.

Possible Causes

possible-causes page anchor
  • You might be adding a new user to the service instance while the user with the same identity is being removed from another thread.
  • You might be submitting multiple concurrent requests to add a user with the same identity to the service instance.
  • You might be submitting multiple concurrent requests to delete the same user by SID or identity from the service instance.
  • Implement an operation retrier and repeat the failed user API requests after an interval of time, using an exponential backoff algorithm.
  • Review your application logic that caused the race condition when adding or removing users. Perhaps the conflicting operations are happening in a loop that could be avoided.

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.