Maarrk
Error with fetch called from npm module
I am trying to use the
tsdav
NPM package with Deno, and have run into a problem with making an HTTP request, which seems specific to Deno.
When I try to call any request method from the library, I get an error with HttpsClientRequest
somewhere deep within some compatibility layer:
Possibly relevant links:
- The tsdav
library: https://tsdav.vercel.app/ https://www.npmjs.com/package/tsdav
- Implementation of fetch that gets called by them: https://www.npmjs.com/package/node-fetch
- The test showing this error: https://github.com/Maarrk/silverbullet-carddav/blob/ed209cb939b935cfe50169dbff7ba8ed2df7771c/online.test.ts#L27-L30
I've only used Deno for a few weeks but I really like it so far, thanks in advance for any help or pointers to relevant docs 😊
I couldn't even find the _http_outgoing.ts
in my local deno folder on my own...4 replies