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
we could additionally check whether e is of type SyntaxError, which would indicate that JSON parsing of the request body failed in body-data-wrapper.js (see adobe/helix-shared#593)
Potential downside: some genuine parsing problem elsewhere in the code might be treated as bad request.
The text was updated successfully, but these errors were encountered:
I don't think this should be handled here.... if the SyntaxError is thrown where no input-data is involved, i.e. reading from a backend, a 500 would be more appropriate.
In:
helix-universal/src/aws-adapter.js
Lines 110 to 121 in 85e54e6
we could additionally check whether
e
is of typeSyntaxError
, which would indicate that JSON parsing of the request body failed inbody-data-wrapper.js
(see adobe/helix-shared#593)Potential downside: some genuine parsing problem elsewhere in the code might be treated as bad request.
The text was updated successfully, but these errors were encountered: