Closed clhuang closed 2 months ago
It appears the documentation is incorrect: https://docs.aws.amazon.com/emr-on-eks/latest/APIReference/API_DescribeJobRun.html
createdAt
and finishedAt
are stated as numbers, but when I make a HTTP call to the endpoint they're returned as ISO datestrings:
@clhuang thanks for opening this issue, I have reached out to the team internally to update the clients since I believe that might be causing deserialization issue.
Model generated in v2: https://github.com/aws/aws-sdk-js/blob/117773b94f05fed570c0122b7bbd958eedc47249/apis/emr-containers-2020-10-01.normal.json#L662 V3: https://github.com/aws/aws-sdk-js-v3/blob/378d16166de49b06263291001986715d9533cadf/codegen/sdk-codegen/aws-models/emr-containers.json
Rust and Go have seen similar issues too, would update you more on this soon.
Was there a resolution to this? I am experiencing this problem in processing cloudsearch results. I get
"(output || []).filter is not a function Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object."
It is failing in de_FieldValue. output is not an array.
const de_FieldValue = (output, context) => { const retVal = (output || []) .filter((e) => e != null) .map((entry) => { if (entry === null) { return null; } return __expectString(entry); }); return retVal; };
This should be fixed.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug parsing of createdAt and finishedAt job fields do not appear to work
Is the issue in the browser/Node.js? Node.js
Details of the browser/Node.js version Paste output of
npx envinfo --browsers
ornode -v
SDK version number @aws-sdk/client-emr-containers@3.87.0
To Reproduce (observed behavior)
receive the error:
Expected behavior no error is thrown,
data
contains job dataScreenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.