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
It appears that normalizeHttpResponse() in the event of undefined or an empty object creates new objects and returns them. This function is relying on side effects for the changes so if new objects are created they're not seen. The result is that if an undefined object is passed in you get an error. It should probably be more like
request = normalizeHttpResponse(request);
The text was updated successfully, but these errors were encountered:
https://github.com/middyjs/middy/blob/f6c152404d7c714b365ad60839ef3ea6b6d554eb/packages/http-response-serializer/index.js#L12C26-L12C26
It appears that
normalizeHttpResponse()
in the event of undefined or an empty object creates new objects and returns them. This function is relying on side effects for the changes so if new objects are created they're not seen. The result is that if an undefined object is passed in you get an error. It should probably be more likeThe text was updated successfully, but these errors were encountered: