Getting timed out error from GetAndLockAsync method

Always getting the below exception from the GetAndLockAsync method.

System.TimeoutException: The operation 45388/45388 timed out after 00:00:02.5000000. It was retried 6 times using Couchbase.Core.Retry.BestEffortRetryStrategy.
at Couchbase.KeyValue.CouchbaseCollection.GetAndLockAsync(String id, TimeSpan lockTime, GetAndLockOptions options).

However, I am able to perform other operations with Couchbase without any issue.

Hi @Lal_John,

Would you mind posting a code sample where you use GetAndLockAsync?

Also, which version of the SDK are you using?

1 Like

A post was split to a new topic: Locking and exceptions