Skip to content

Commit 282c5d8

Browse files
committed
calling preProcessBody twice seemed to cause some issues
1 parent b9a3621 commit 282c5d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/bundler-plugin-core/src/utils/getPreSignedURL.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,16 @@ export const getPreSignedURL = async ({
9595

9696
let response: Response;
9797
try {
98-
debug(`Request body: ${JSON.stringify(preProcessBody(requestBody))}`);
98+
const body = preProcessBody(requestBody);
99+
debug(`Request body: ${JSON.stringify(body)}`);
99100
response = await fetchWithRetry({
100101
retryCount,
101102
url: `${apiUrl}${API_ENDPOINT}`,
102103
name: "`get-pre-signed-url`",
103104
requestData: {
104105
method: "POST",
105106
headers: headers,
106-
body: JSON.stringify(preProcessBody(requestBody)),
107+
body: JSON.stringify(body),
107108
},
108109
});
109110
} catch (e) {

0 commit comments

Comments
 (0)