TypeError [ERR_INVALID_URL]: "codex/responses" cannot be parsed as a URL. #8130

Open
opened 2026-02-16 18:09:14 -05:00 by yindo · 4 comments
Owner

Originally created by @Honggilseong on GitHub (Jan 31, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

when i try to use chatgpt 5.2 i got this error TypeError [ERR_INVALID_URL]: "codex/responses" cannot be parsed as a URL.

chatgpt 5.2 - codex is fine.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @Honggilseong on GitHub (Jan 31, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description when i try to use chatgpt 5.2 i got this error TypeError [ERR_INVALID_URL]: "codex/responses" cannot be parsed as a URL. chatgpt 5.2 - codex is fine. ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:09:14 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 31, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8622: gpt-5.2-codex TypeError: sdk.responses is not a function. (In 'sdk.responses(modelID)', 'sdk.responses' is undefined)

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 31, 2026): This issue might be a duplicate of existing issues. Please check: - #8622: gpt-5.2-codex TypeError: sdk.responses is not a function. (In 'sdk.responses(modelID)', 'sdk.responses' is undefined) Feel free to ignore if this doesn't address your specific case.
Author
Owner

@aysuio commented on GitHub (Jan 31, 2026):

same here

@aysuio commented on GitHub (Jan 31, 2026): same here
Author
Owner

@rekram1-node commented on GitHub (Jan 31, 2026):

Can you share your configs?

Opencode versions?

Are you using plugins?

@rekram1-node commented on GitHub (Jan 31, 2026): Can you share your configs? Opencode versions? Are you using plugins?
Author
Owner

@BeccaraNZ commented on GitHub (Feb 2, 2026):

Getting same issue, with debug on for OC I get this:

=llm providerID=openai modelID=gpt-5.2 sessionID=ses_3dffcfe1effeREVNkKlf50d2e1 small=false agent=prometheus mode=all error={"error":{}} stream error
ERROR 2026-02-02T20:19:54 +1ms service=session.processor error=fetch() URL is invalid stack="TypeError: fetch() URL is invalid\n at fetch (unknown)\n at (src/provider/provider.ts:986:45)\n at (../../node_modules/.bun/@ai-sdk+provider-utils@3.0.20+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:767:28)\n at postToApi (../../node_modules/.bun/@ai-sdk+provider-utils@3.0.20+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:757:17)\n at postJsonToApi (../../node_modules/.bun/@ai-sdk+provider-utils@3.0.20+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:714:21)\n at doStream (../../node_modules/.bun/@ai-sdk+openai@2.0.89+d6123d32214422cb/node_modules/@ai-sdk/openai/dist/index.mjs:3754:56)\n at processTicksAndRejections (native:7:39)" process

@BeccaraNZ commented on GitHub (Feb 2, 2026): Getting same issue, with debug on for OC I get this: =llm providerID=openai modelID=gpt-5.2 sessionID=ses_3dffcfe1effeREVNkKlf50d2e1 small=false agent=prometheus mode=all error={"error":{}} stream error ERROR 2026-02-02T20:19:54 +1ms service=session.processor error=fetch() URL is invalid stack="TypeError: fetch() URL is invalid\n at fetch (unknown)\n at <anonymous> (src/provider/provider.ts:986:45)\n at <anonymous> (../../node_modules/.bun/@ai-sdk+provider-utils@3.0.20+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:767:28)\n at postToApi (../../node_modules/.bun/@ai-sdk+provider-utils@3.0.20+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:757:17)\n at postJsonToApi (../../node_modules/.bun/@ai-sdk+provider-utils@3.0.20+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:714:21)\n at doStream (../../node_modules/.bun/@ai-sdk+openai@2.0.89+d6123d32214422cb/node_modules/@ai-sdk/openai/dist/index.mjs:3754:56)\n at processTicksAndRejections (native:7:39)" process
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8130