101002: Lock request already pending
lock_request_already_pendingA lock could not be requested because a request for the same lock is already in progress. In Ably Spaces, a member may only have one outstanding request for a given lock at a time.
What you should do
Wait for the pending lock request to resolve before requesting the same lock again. A member can have only one outstanding request for a given lock, so let the first attempt succeed or fail rather than issuing another alongside it.
Why it happens
A lock was requested while a request for the same lock by the same member was still in progress. Lock acquisition is asynchronous, and only one request per lock can be outstanding at a time.
What you'll see
The error is reported with code 101002 and HTTP status 400. The message is lock request already exists.