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 = 30000
No description
8 Replies
DaniFoldi
DaniFoldi2mo ago
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
flof.fly
flof.flyOP2mo ago
Sad, thank you for the detailed explanation. What can I do to overcome this as a workaround?
flof.fly
flof.flyOP2mo ago
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...
flof.fly
flof.flyOP2mo ago
Can I somehow help in the implementation?
luna
luna2mo ago
hitting the same issue trying to use a popular twitter library. ☹️
DaniFoldi
DaniFoldi2mo ago
I guess this would be best if asked as a gh issue on the unenv repo
flof.fly
flof.flyOP2mo ago
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...
flof.fly
flof.flyOP2mo ago
I mean is https.request really that "weird need"? XD
Want results from more Discord servers?
Add your server