101003: Lock already held

lock_already_held

A lock could not be acquired because it is currently held by another member. In Ably Spaces, only one member can hold a given lock at a time, and it must be released before another can take it.

What you should do

Treat the lock as unavailable and handle that in your application, for example by waiting until it is released and trying again, or by showing the component as locked by someone else. Contention is expected: a lock exists precisely so that only one member holds it at a time.

Why it happens

The lock was already held by another member when it was requested. Only one member can hold a given lock at a time, and it must be released before another member can acquire it.

What you'll see

The error is reported with code 101003 and HTTP status 400. The message is lock is currently locked.