-
Notifications
You must be signed in to change notification settings - Fork 600
Description
Hi! I was excited to hear in #3820 (comment) that node:https compatibility was now available in Cloudflare Workers with just an update of wrangler + some compatibility_flags, but upon testing with OpenNextJS on Cloudflare Workers it seems that not all functionality is available.
I've already confirmed that I'm using the latest version of wrangler + a compatibility_date of 2025-08-15 and compatibility_flags set to ["nodejs_compat", "global_fetch_strictly_public", "enable_nodejs_http_modules"] as the linked issue suggests.
Reproducing
The full codebase I'm experiencing this issue with is here: https://github.com/aricodes-oss/asabove - but for minimal reproduction, it is sufficient to just create a new OpenNextJS project,
npm install --save googleapisand then
import { google } from 'googleapis';
export const calendar = google.calendar({
version: 'v3',
auth: process.env.GOOGLE_CALENDAR_API_KEY,
});somewhere in your codebase. The dev preview will work as expected, but all requests to the live site will result in 500 errors. Here is a sample log event from when that happens:
{
"source": {
"level": "error",
"message": "Error: The options.insecureHTTPParser option is not implemented",
"$cloudflare": {
"$metadata": {
"id": "01K3A2HKPJ2NBXXBGJGTESB4PC",
"type": "cf-worker",
"error": "Error: The options.insecureHTTPParser option is not implemented",
"errorPattern": "Error: The <DOMAIN> option is not implemented"
}
}
},
"dataset": "cloudflare-workers",
"timestamp": "2025-08-22T23:41:40.946Z",
"$workers": {
"truncated": false,
"event": {
"request": {
"url": "http://www.asabovesound.com/",
"method": "GET",
"path": "/"
}
},
"outcome": "ok",
"scriptName": "asabove",
"eventType": "fetch",
"executionModel": "stateless",
"scriptVersion": {
"id": "dec56feb-ded3-4cba-8e94-25d225100b2b"
},
"requestId": "973638e2b80a3e91"
},
"$metadata": {
"id": "01K3A2HKPJ2NBXXBGJGTESB4PC",
"requestId": "973638e2b80a3e91",
"trigger": "GET /",
"service": "asabove",
"level": "error",
"error": "Error: The options.insecureHTTPParser option is not implemented",
"message": "Error: The options.insecureHTTPParser option is not implemented",
"account": "redacted",
"type": "cf-worker",
"fingerprint": "redacted",
"origin": "fetch",
"errorTemplate": "Error: The <DOMAIN> option is not implemented"
},
"links": []
}