python_dynamodb_lock icon indicating copy to clipboard operation
python_dynamodb_lock copied to clipboard

Provided Key Element does not match the Schema

Open stevedefazio opened this issue 2 years ago • 0 comments

  • Python DynamoDB Lock version: 0.9.1
  • Python version: 3.7.3
  • Operating System: Windows

Description

I'm trying to create a new lock on a DDB table. I pass in my ddb resource and tablename, and then I select an arbitrary name for my lock. It raises a DynamoDBLockError. So far as I can tell I'm following the pretty simply instructions in the documentation, so I suspect there's something fundamental to how this works that I do not understand.

lock_client = DynamoDBLockClient(dynamodb, "TableName")
with lock_client.acquire_lock("name_of_my_lock"):
...

An error occurred (ValidationException) when calling the GetItem operation: The provided key element does not match the schema

stevedefazio avatar Jun 20 '23 01:06 stevedefazio