Error reports now keep the status code and request id even when the error was wrapped.
What's wrong with this entry?
Status codes and request ids survive when an API error was rethrown inside another Error.
- Error reporting unwraps
error.cause. - If the cause is an API error, its status and request id populate
apiErrorStatusandrequestId. - Previously that metadata was lost for wrapped errors.
apiErrorStatus
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.228
API rejections are classified from a structured marker instead of prose alone
Both mention error
-
v2.1.228
Oversized media in a request is now its own rejection class
Both mention error
-
v2.1.234
Empty or malformed API responses now report what actually answered
Both mention error