object(stdClass) { __type => 'com.amazon.coral.service#SerializationException' Message => 'class java.lang.String is not an expected Json type' }
The problem was the data type of the attributes and metrics I was trying to send. AWS REST API has strict requirements for those. The solution was to convert attribute values to strings (
strval()
) and metrics to integers (intval()
).
No comments:
Post a Comment