diff --git a/src/rest/request_manager.ts b/src/rest/request_manager.ts index 67a81e7e5..071bf91c9 100644 --- a/src/rest/request_manager.ts +++ b/src/rest/request_manager.ts @@ -222,8 +222,11 @@ function runMethod( !url.startsWith(IMAGE_BASE_URL) ) { return fetch(url, { - method, - body: body ? JSON.stringify(body) : undefined, + body: JSON.stringify({ + url, + method, + ...(body as Record || {}), + }), headers: { authorization: restAuthorization, },