diff --git a/src/http-client/fetch-client.ts b/src/http-client/fetch-client.ts index 717e5eda..cd3f8efe 100644 --- a/src/http-client/fetch-client.ts +++ b/src/http-client/fetch-client.ts @@ -97,19 +97,14 @@ export class FetchClient implements HTTPClient, HTTPStreamClient { }; async function* reader() { - const response = await fetch(request, options) - .then((resp) => { - console.log(resp); - return resp; - }) - .catch((error) => { - throw new NetworkError( - "The network connection encountered a problem.", - { - cause: error, - }, - ); - }); + const response = await fetch(request, options).catch((error) => { + throw new NetworkError( + "The network connection encountered a problem.", + { + cause: error, + }, + ); + }); const status = response.status; if (!(status >= 200 && status < 400)) { const failure: QueryFailure = await response.json();