The library "got" is still not working

It fails with this message: text: 'Uncaught Error: The options.socket option is not implemented\n' + ' at node-internal:internal_tls_wrap:129:19 in TLSSocket\n' + ' at index.js:103192:26 in ../../node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.js\n'
2 Replies
olafg
olafg6mo ago
That is because Workers doesn't support all nodejs functionality, although some things work through the compatability layer. Workers are highly based around the Fetch API so I would just use that, I don't see any advantage of using something like got.
pao ramen
pao ramenOP6mo ago
I understand this. But I guess you want to increase that compatibility layer no? Otherwise it's a hit and miss. Fetch does not have support for proxies

Did you find this page helpful?