openclaw - 💡(How to fix) Fix [Bug]: add openroute api Error[ESM] [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#62156Fetched 2026-04-08 03:08:19
View on GitHub
Comments
2
Participants
3
Timeline
4
Reactions
0
Timeline (top)
commented ×2labeled ×2

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'f:'

Error Message

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'f:' Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'f:'

Root Cause

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'f:'

Code Example

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'f:'
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'f:'

Steps to reproduce

{WINDOWS}:on openclaw 2026.4.5 when add openroute api

Expected behavior

NOT_ENOUGH_INFO

Actual behavior

NOT_ENOUGH_INFO.

OpenClaw version

2026.4.5

Operating system

windows10

Install method

No response

Model

null

Provider / routing chain

openclaw

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'f:'

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The error is likely due to an invalid URL scheme in the ESM loader, and using a valid file:// URL for absolute paths on Windows may resolve the issue.

Guidance

  • Verify that the URL being used is correctly formatted, especially when using absolute paths on Windows, which should start with file://.
  • Check the OpenClaw documentation for any specific requirements or recommendations for URL schemes when using the ESM loader on Windows.
  • Consider updating the code to handle URL schemes correctly, potentially by adding the file:// prefix to absolute paths on Windows.
  • Review the error message and logs to ensure that the issue is indeed related to the ESM loader and URL scheme.

Example

No code example is provided due to lack of specific code context in the issue.

Notes

The issue seems to be related to the ESM loader and URL scheme, but more information about the code and setup would be helpful to provide a more specific solution.

Recommendation

Apply workaround: The best course of action appears to be adjusting the URL scheme to match the expected format, likely by adding the file:// prefix to absolute paths on Windows, as this directly addresses the error message's indication of an unsupported URL scheme.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

NOT_ENOUGH_INFO

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING