roonie007 / axiod

Promise based HTTP client for Deno
53 stars 6 forks source link

Uncaught (in promise) TypeError: stream is locked. #7

Closed DryDemon closed 3 years ago

DryDemon commented 4 years ago

Hey, I launch the very basic code to test if the package worked and I got this :

error: Uncaught (in promise) TypeError: stream is locked. at new ReadableStreamDefaultReader (deno:op_crates/fetch/11_streams.js:358:15) at acquireReadableStreamDefaultReader (deno:op_crates/fetch/11_streams.js:1029:20) at ReadableStream.getReader (deno:op_crates/fetch/11_streams.js:553:16) at Response.arrayBuffer (deno:op_crates/fetch/26_fetch.js:870:50) at Response.text (deno:op_crates/fetch/26_fetch.js:858:29) at mod.ts:192:25

code :

import axiod from "https://deno.land/x/axiod/mod.ts";

axiod.get("https://google.fr").then((response) => { // response console.log(response);

});

thanks