Skip to content

fix: Fix customerV2 index schema - #31

Closed
Peeja wants to merge 1 commit into
mainfrom
fix/customerV2-schema
Closed

fix: Fix customerV2 index schema#31
Peeja wants to merge 1 commit into
mainfrom
fix/customerV2-schema

Conversation

@Peeja

@Peeja Peeja commented Apr 21, 2026

Copy link
Copy Markdown
Member

I don't really understand this code, I just know that Dynamo complained until Claude told me this part was wrong and unnecessary. Can anyone confirm? I couldn't run Sprue at all without this change.

@alanshaw

Copy link
Copy Markdown
Member

What is the error? This is working for me and in tests.

The subscription is used in ListByProviderAndCustomer as the cursor value for paginating over subscriptions. I think the tests are still passing because they are not asserting on the returned values for each page.

@Peeja

Peeja commented Apr 22, 2026

Copy link
Copy Markdown
Member Author

The error looks like:

creating DynamoDB table "subscription": ValidationException: Key Schema too big.
Key Schema must at most consist of the hash and range key of a table

@alanshaw

Copy link
Copy Markdown
Member

I think I remember seeing something like this and I was becasue I had an old "latest" dynamodb image - what version are you using? Maybe try upgrading?

@Peeja

Peeja commented Apr 22, 2026

Copy link
Copy Markdown
Member Author

I think that did it! Thanks!

@Peeja Peeja closed this Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants