mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 07:46:16 -05:00
[GH-ISSUE #24762] issue: Error 'NoneType' object has no attribute 'startswith' #123710
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SuperPat45 on GitHub (May 15, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24762
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.9.5
Ollama Version (if applicable)
v0.24.0
Operating System
Ubuntu 24.10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
No error
Actual Behavior
Return HTTP error 400:
Steps to Reproduce
https://openwebui/api/v1/chat/completions{"messages":[{"content":"Who are you?","role":"user"}],"model":"gemma4:26b"}Logs & Screenshots
Additional Information
No response
@owui-terminator[bot] commented on GitHub (May 15, 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:
🟣 #24550 bug: NoneType object has no attribute 'startswith' — all /api/v1/chat/completions calls return 400 (v0.9.5, direct connections)
Reports the same 400 error with
'NoneType' object has no attribute 'startswith'on/api/v1/chat/completionsin v0.9.5, and notes it affects direct external API clients. This is essentially the same failure mode and endpoint as the new issue.by ThefloorMiner
🟣 #24564 bug: API calls to /api/chat/completions fail: "'NoneType' object has no attribute 'startswith'"
Very close match: the title and body describe
/api/chat/completionsreturning the exact same'NoneType' object has no attribute 'startswith'error. It also reproduces across models and API-only usage, matching the new report.by da-astro ·
bug🟣 #24573 issue: External API returns 400 error with 'NoneType' object has no attribute 'startswith' since v0.9.3**
Describes the same external API failure and identical error string beginning in v0.9.3 through v0.9.5. Although it mentions a slightly different endpoint path, it is clearly the same completions API bug affecting API clients.
by choseongho11 ·
bug🟣 #24554 issue: Open WebUI v0.9.5 Broken Completions API
This issue says v0.9.5 broke the completions API for token-authenticated clients like OpenCode and Continue Dev, which is the same symptom class and same regression window as the new issue.
by xcjs ·
bug🟣 #24575 bug: 'NoneType' object has no attribute 'startswith' on /api/chat/completions when external client omits parent_id
The error string is identical, and the report narrows the trigger to external clients omitting
parent_idon/api/chat/completions. The new issue also uses a minimal external API payload and hits the same error, so this is highly related.by Ghosterme-dev ·
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.
@Classic298 commented on GitHub (May 15, 2026):
duplicate, fixed in dev, please search for existing issues