DynamoDB client not saving new entry - no errors though #3160
Unanswered
emergingdzns
asked this question in
Q&A
Replies: 2 comments
-
Weirdly it magically started working. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a laravel based system using the aws php sdk version 3.351.9.
In DynamoDB I've setup a table with "listing_id" as the partition key and "updated_at" as the sort key. Capacity Mode is set to On-demand.
Here is the PHP code I'm using to attempt to write the data to the table:
On the values in the array above that are set to 'S' but have numbers for the values I converted to strings because when I used 'N' with actual numbers in there, Dynamo through errors saying that NUMERIC value could not be converted to string. So I just made everything a string, which is fine for our purposes as this is just archive data.
Once I worked through all the data type errors (such as the numeric issue mentioned and things like not including anything with a null or empty value) everything looked like it went through just fine. No errors. But also, nothing is writing to the DynamoDB table.
If I weren't bald already, I'd be pulling my hair out.
I have confirmed that the AWS credentials and region are correct. And with no errors being reported anywhere, what could I be doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions