https.request is not implemented yet
I'm getting the following error on Cloudflare:
Error https.request is not implemented yet
Even tho https.requests seems to be compatible:
What am I doing wrong?
My wrangler:
compatibility_flags = [ "nodejs_compat" ]
compatibility_date = "2024-09-23"
[limits]
cpu_ms = 300008 Replies
https.request would be a polyfill coming from unenv, but it looks like it is really not implemented: https://github.com/unjs/unenv/blob/main/src/runtime/node/https/index.ts#L17
that compatibility check only tests for the existence of the method, maybe cc @IgorMinar I saw quite a few requested modules get implemented, so here's another one
Sad, thank you for the detailed explanation.
What can I do to overcome this as a workaround?
https://github.com/aws-lite/aws-lite/issues/171
I've created a enhancement request on aws-lite as well, let me know if I mistakenly written something so I can edit
GitHub
Request function override · Issue #171 · aws-lite/aws-lite
Describe the problem underlying the enhancement request I'm trying to run aws-lite/sqs on a Cloudflare worker, but https.request module is not yet implemented in their node environment (the Wor...
Can I somehow help in the implementation?
hitting the same issue trying to use a popular twitter library. ☹️
I guess this would be best if asked as a gh issue on the unenv repo
https://github.com/unjs/unenv/issues/323
100% ghosted there XD
GitHub
https.request for cloudflare · Issue #323 · unjs/unenv
Describe the feature Hi, just to make sure, is https.request implemented for cloudflare? If not, do you think there an ETA for it? I'd love to help if possible. Additional information Would you...
I mean is https.request really that "weird need"? XD