mirror of
https://github.com/open-webui/docs.git
synced 2026-07-20 15:38:19 -04:00
issue: Error if Application Header is not set to json when using API #138
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 @maurerle on GitHub (Dec 8, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.41
Ollama Version (if applicable)
v0.13.0
Operating System
Debian 13
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
Using:
should work fine as it is specified in the docs:
https://docs.openwebui.com/getting-started/api-endpoints/#-generate-completion-streaming
Actual Behavior
{"detail":[{"type":"model_attributes_type","loc":["body"],"msg":"Input should be a valid dictionary or object to extract fields from","input":"{\n \"model\": \"mistral:latest\",\n \"prompt\": \"Why is the sky blue?\"\n}"}]}%errorOnly adding
-H 'Content-Type: application/json'works
Steps to Reproduce
https://docs.openwebui.com/getting-started/api-endpoints/#-generate-completion-streaming
Logs & Screenshots
given above
Additional Information
No response
@owui-terminator[bot] commented on GitHub (Dec 8, 2025):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19755 issue: Error: 404, message='Not Found', url='http://ollama:11434/api/embed'
by stevewillett • Dec 04, 2025 •
bug#19777 issue:
by Yaute7 • Dec 05, 2025 •
bug#19563 issue:
by naruto7g • Nov 28, 2025 •
bug#19230 issue: Open WebUI 0.6.36 Unexpected token 'd', "data: {"id"... is not valid JSON returned.
by abhijit4law • Nov 17, 2025 •
bug#19017 issue: OPENAI_API_CONFIGS and OLLAMA_API_CONFIGS environment variables are not parsed from JSON
by runixer • Nov 07, 2025 •
bugShow 5 more related issues
#19211 issue:
by Byrnes9 • Nov 16, 2025 •
bug#19417 issue: v0.6.37 SQL Error
by AKHYP • Nov 24, 2025 •
bug#15911 issue: Tools : JSON malformed
by chdid • Jul 21, 2025 •
bug#14908 issue: 401 x-api-key header is required web search
by deresolution20 • Jun 11, 2025 •
bug#19496 issue: 500 internal server error appears in v0.6.40
by cloudtuotuo • Nov 26, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@tjbck commented on GitHub (Dec 8, 2025):
Intended, @silentoplayz our docs should be updated.
@Classic298 commented on GitHub (Dec 20, 2025):
edited docs\getting-started\api-endpoints.md in dev