mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 05:02:01 -06:00
[GH-ISSUE #24603] issue: opencode api access Bad Request: {"detail":"'NoneType' object has no attribute 'startswith'"} #91093
Reference in New Issue
Block a user
Originally created by @vibeopsde on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24603
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.9.6
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
v0.9.5 and earlier: works absolutly fine with opencode over api
Actual Behavior
since v0.9.6:
Bad Request: {"detail":"'NoneType' object has no attribute 'startswith'"}
this message blub at every message.
Steps to Reproduce
system1: macstudio - lm studio <-> system2: vserver - openwebui <-> every endpoint - opencode (v1.4.48)
Logs & Screenshots
Bad Request: {"detail":"'NoneType' object has no attribute 'startswith'"}
Build · qwen3.5-122b-a10b
Additional Information
No response
@owui-terminator[bot] commented on GitHub (May 12, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟣 #24575 bug: 'NoneType' object has no attribute 'startswith' on /api/chat/completions when external client omits parent_id
This is the closest match: it reports the same 400 error with
'NoneType' object has no attribute 'startswith'on/api/chat/completionsfor external OpenAI-compatible clients, specifically when required context likeparent_idis missing. The reported OpenCode failure in #24603 is the same symptom and likely the same request-path regression.by Ghosterme-dev ·
bug🟣 #24550 bug: NoneType object has no attribute 'startswith' — all /api/v1/chat/completions calls return 400 (v0.9.5, direct connections)
This issue describes the same
'NoneType' object has no attribute 'startswith'400 error for external completions API clients, including OpenClaude CLI and VS Code extensions. It appears to be the broader underlying bug affecting external API requests, which would include OpenCode.by ThefloorMiner
🟣 #24573 issue: External API returns 400 error with 'NoneType' object has no attribute 'startswith' since v0.9.3**
This earlier report matches the same error message and the same external API
/api/chat/completionspath across v0.9.3+ versions. It provides historical context that the regression affects token-authenticated external clients, which is consistent with the OpenCode breakage in #24603.by choseongho11 ·
bug🟣 #24554 issue: Open WebUI v0.9.5 Broken Completions API
This issue reports the completions API breaking in v0.9.5 specifically for OpenCode and Continue Dev, with the same
'NoneType' object has no attribute 'startswith'error. Since #24603 is also about OpenCode over the API and the error persists in a later version, it is directly related.by xcjs ·
bug💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.