Skip to content

Commit

Permalink
feat: formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-dixit committed Feb 14, 2025
1 parent c137e26 commit 460dc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/sdk/utils/errors/src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const generateMetadataFromAxiosError = (
metadata?: Record<string, unknown>;
}
): Record<string, unknown> => {
const requestId = axiosError.request?.headers["x-request-id"];
const requestId = axiosError.response?.headers?.["x-request-id"] || axiosError?.request?.headers?.["x-request-id"];
return {
fullUrl:
(axiosError.config?.baseURL ?? "") + (axiosError.config?.url ?? ""),
Expand Down

0 comments on commit 460dc90

Please sign in to comment.