Skip to content

Commit

Permalink
Merge pull request #3175 from pnp/patrick-rodgers-patch-3
Browse files Browse the repository at this point in the history
Add back in .clone() for errors
  • Loading branch information
juliemturner authored Dec 9, 2024
2 parents 54bc410 + 479ac9c commit 4cb856f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/queryable/behaviors/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class HttpRequestError extends Error {
}

public static async init(r: Response): Promise<HttpRequestError> {
const t = await r.text();
const t = await r.clone().text();
return new HttpRequestError(`Error making HttpClient request in queryable [${r.status}] ${r.statusText} ::> ${t}`, r);
}
}

0 comments on commit 4cb856f

Please sign in to comment.