guregu / dynamo

expressive DynamoDB library for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tracking down "A value provided cannot be converted into a number" error

FrankDMartinez opened this issue · comments

Hello. When trying to put an object to local DynamoDB, the following error was returned:

&awserr.requestError{
    awsError: &awserr.baseError{
        code:    "ValidationException",
        message: "A value provided cannot be converted into a number",
        errs:    nil,
    },
    statusCode: 400,
    requestID:  "e7b49b35-d4b4-49ee-9619-6b04f23c292e",
    bytes:      nil,
}

The data payload is quite cumbersome. How do I determine which field cannot be converted?

Thanks in advance.

Found it. I had a division-by-zero result in the payload.