You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using moto as a testcontainer with a golang sdk client in order to mock dynamodbstreams.
When calling DescribeStream, I get error deserializing CreationRequestDateTime.
operation error DynamoDB Streams: DescribeStream, https response error StatusCode: 200, RequestID: eNgJwGwokhpIul3c2cEJcocZj8maXMu83f4kF1d1OnwNs4m4jTBc, deserialization failed, failed to decode response body, expected Date to be a JSON Number, got string instead.
when debugging I see it happens here:
case "CreationRequestDateTime":
if value != nil {
switch jtv := value.(type) {
case json.Number:
f64, err := jtv.Float64()
if err != nil {
return err
}
sv.CreationRequestDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected Date to be a JSON Number, got %T instead", value)
}
}
I think the fix is simply to change the formatting:
Hi,
I'm using moto as a testcontainer with a golang sdk client in order to mock dynamodbstreams.
When calling DescribeStream, I get error deserializing CreationRequestDateTime.
operation error DynamoDB Streams: DescribeStream, https response error StatusCode: 200, RequestID: eNgJwGwokhpIul3c2cEJcocZj8maXMu83f4kF1d1OnwNs4m4jTBc, deserialization failed, failed to decode response body, expected Date to be a JSON Number, got string instead.
when debugging I see it happens here:
I think the fix is simply to change the formatting:
Thanks!
The text was updated successfully, but these errors were encountered: