fix(session): store api url in metadata (#8090)
This commit is contained in:
@@ -664,6 +664,7 @@ export namespace MessageV2 {
|
||||
return `${msg}: ${e.responseBody}`
|
||||
}).trim()
|
||||
|
||||
const metadata = e.url ? { url: e.url } : undefined
|
||||
return new MessageV2.APIError(
|
||||
{
|
||||
message,
|
||||
@@ -671,6 +672,7 @@ export namespace MessageV2 {
|
||||
isRetryable: e.isRetryable,
|
||||
responseHeaders: e.responseHeaders,
|
||||
responseBody: e.responseBody,
|
||||
metadata,
|
||||
},
|
||||
{ cause: e },
|
||||
).toObject()
|
||||
|
||||
Reference in New Issue
Block a user