Maarrk
Maarrk
DDeno
Created by Maarrk on 2/11/2024 in #help
Error with fetch called from npm module
I ran into exactly the same error with another library:
dav auth test => ./online.test.ts:16:6
error: TypeError: Cannot read properties of undefined (reading 'write')
at HttpsClientRequest._writeRaw (ext:deno_node/_http_outgoing.ts:422:24)
at HttpsClientRequest._send (ext:deno_node/_http_outgoing.ts:408:17)
at HttpsClientRequest.write_ (ext:deno_node/_http_outgoing.ts:316:16)
at HttpsClientRequest.write (ext:deno_node/_http_outgoing.ts:293:17)
at exports.XMLHttpRequest.send (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/xmlhttprequest/1.8.0/lib/XMLHttpRequest.js:467:17)
at XMLHttpRequest.send (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:3416:15)
at Basic.callee$2$0$ (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:2960:26)
at tryCatch (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:121:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:294:22)
at GeneratorFunctionPrototype.Gp.<computed> [as next] (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:330:19)
dav auth test => ./online.test.ts:16:6
error: TypeError: Cannot read properties of undefined (reading 'write')
at HttpsClientRequest._writeRaw (ext:deno_node/_http_outgoing.ts:422:24)
at HttpsClientRequest._send (ext:deno_node/_http_outgoing.ts:408:17)
at HttpsClientRequest.write_ (ext:deno_node/_http_outgoing.ts:316:16)
at HttpsClientRequest.write (ext:deno_node/_http_outgoing.ts:293:17)
at exports.XMLHttpRequest.send (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/xmlhttprequest/1.8.0/lib/XMLHttpRequest.js:467:17)
at XMLHttpRequest.send (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:3416:15)
at Basic.callee$2$0$ (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:2960:26)
at tryCatch (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:121:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:294:22)
at GeneratorFunctionPrototype.Gp.<computed> [as next] (file:///C:/Users/Marek/AppData/Local/deno/npm/registry.npmjs.org/dav/1.8.0/dav.js:330:19)
https://www.npmjs.com/package/dav
4 replies
DDeno
Created by Maarrk on 2/11/2024 in #help
Error with fetch called from npm module
In the meantime I have tried the code with Node v16.15.0, and it works as expected, so doesn't seem like a problem with my code
4 replies