Skip to content

πŸ› Bug Report β€” Runtime APIs - Error: The options.insecureHTTPParser option is not implemented with new node:https compatibilityΒ #4877

@aricodes-oss

Description

@aricodes-oss

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 googleapis

and 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": []
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions