Skip to content

Commit 10e702f

Browse files
committed
Clone error body
1 parent 9ca489f commit 10e702f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/routes/auth-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const authTokenHandler = asyncHandler(async (req, res) => {
4242

4343
if (!bungieResponse.ok) {
4444
try {
45-
const errorBody = (await bungieResponse.json()) as ApiError;
45+
const errorBody = (await bungieResponse.clone().json()) as ApiError;
4646
if (errorBody.ErrorStatus === 'WebAuthRequired') {
4747
metrics.increment('authToken.webAuthRequired.count');
4848
res.status(401).send({

0 commit comments

Comments
 (0)