[GH-ISSUE #13009] 500 Internal Server Error when using deepseek-v3:cloud — "invalid character 'I' looking for beginning of value" #70672

Closed
opened 2026-05-04 22:30:20 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @lhr001fly on GitHub (Nov 8, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/13009

What is the issue?

When using the Ollama Desktop App (Windows) with the DeepSeek Cloud model (deepseek-v3:1.671b-cloud), the first message works normally, but the second or subsequent message in the same chat fails with this error:

500 Internal Server Error: unmarshal: invalid character 'I' looking for beginning of value

The model can initialize and respond correctly on the first turn, but any follow-up message immediately triggers this 500 Internal Server Error.

Relevant log output

time=2025-11-07T20:40:31.748-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=GET http.path=/api/v1/chats http.pattern="GET /api/v1/chats" http.status=200 http.d=526.2µs request_id=1762566031747633500 version=0.12.10
time=2025-11-07T20:40:31.771-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=GET http.path=/api/v1/settings http.pattern="GET /api/v1/settings" http.status=200 http.d=513.1µs request_id=1762566031771118900 version=0.12.10
time=2025-11-07T20:40:31.926-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=POST http.path=/api/v1/model/upstream http.pattern="POST /api/v1/model/upstream" http.status=200 http.d=155.4114ms request_id=1762566031771118900 version=0.12.10
time=2025-11-07T20:40:32.821-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=GET http.path=/api/v1/chat/019a611a-807d-7716-9bf0-1ab925df5403 http.pattern="GET /api/v1/chat/{id}" http.status=200 http.d=543µs request_id=1762566032820995100 version=0.12.10
time=2025-11-07T20:40:35.861-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=POST http.path=/api/v1/chat/new http.pattern="POST /api/v1/chat/{id}" http.status=200 http.d=4.124207s request_id=1762566031737228300 version=0.12.10
time=2025-11-07T20:40:35.869-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=GET http.path=/api/v1/chat/019a611f-4979-737b-b566-df34ca9bc4a2 http.pattern="GET /api/v1/chat/{id}" http.status=200 http.d=2.0793ms request_id=1762566035867010100 version=0.12.10
time=2025-11-07T20:40:37.357-05:00 level=ERROR source=ui.go:1155 msg="chat stream error" error="500 Internal Server Error: unmarshal: invalid character 'I' looking for beginning of value"
time=2025-11-07T20:40:37.358-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=POST http.path=/api/v1/chat/019a611f-4979-737b-b566-df34ca9bc4a2 http.pattern="POST /api/v1/chat/{id}" http.status=200 http.d=349.4216ms request_id=1762566037008872100 version=0.12.10

OS

Windows 11

GPU

NVIDIA GeForce RTX 4050 Laptop GPU

CPU

AMD Ryzen 5 7640HS w/ Radeon 760M Graphics

Ollama version

0.12.10

Originally created by @lhr001fly on GitHub (Nov 8, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/13009 ### What is the issue? When using the Ollama Desktop App (Windows) with the DeepSeek Cloud model (deepseek-v3:1.671b-cloud), the first message works normally, but the second or subsequent message in the same chat fails with this error: 500 Internal Server Error: unmarshal: invalid character 'I' looking for beginning of value The model can initialize and respond correctly on the first turn, but any follow-up message immediately triggers this 500 Internal Server Error. ### Relevant log output ```shell time=2025-11-07T20:40:31.748-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=GET http.path=/api/v1/chats http.pattern="GET /api/v1/chats" http.status=200 http.d=526.2µs request_id=1762566031747633500 version=0.12.10 time=2025-11-07T20:40:31.771-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=GET http.path=/api/v1/settings http.pattern="GET /api/v1/settings" http.status=200 http.d=513.1µs request_id=1762566031771118900 version=0.12.10 time=2025-11-07T20:40:31.926-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=POST http.path=/api/v1/model/upstream http.pattern="POST /api/v1/model/upstream" http.status=200 http.d=155.4114ms request_id=1762566031771118900 version=0.12.10 time=2025-11-07T20:40:32.821-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=GET http.path=/api/v1/chat/019a611a-807d-7716-9bf0-1ab925df5403 http.pattern="GET /api/v1/chat/{id}" http.status=200 http.d=543µs request_id=1762566032820995100 version=0.12.10 time=2025-11-07T20:40:35.861-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=POST http.path=/api/v1/chat/new http.pattern="POST /api/v1/chat/{id}" http.status=200 http.d=4.124207s request_id=1762566031737228300 version=0.12.10 time=2025-11-07T20:40:35.869-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=GET http.path=/api/v1/chat/019a611f-4979-737b-b566-df34ca9bc4a2 http.pattern="GET /api/v1/chat/{id}" http.status=200 http.d=2.0793ms request_id=1762566035867010100 version=0.12.10 time=2025-11-07T20:40:37.357-05:00 level=ERROR source=ui.go:1155 msg="chat stream error" error="500 Internal Server Error: unmarshal: invalid character 'I' looking for beginning of value" time=2025-11-07T20:40:37.358-05:00 level=INFO source=ui.go:211 msg=site.serveHTTP http.method=POST http.path=/api/v1/chat/019a611f-4979-737b-b566-df34ca9bc4a2 http.pattern="POST /api/v1/chat/{id}" http.status=200 http.d=349.4216ms request_id=1762566037008872100 version=0.12.10 ``` ### OS Windows 11 ### GPU NVIDIA GeForce RTX 4050 Laptop GPU ### CPU AMD Ryzen 5 7640HS w/ Radeon 760M Graphics ### Ollama version 0.12.10
GiteaMirror added the bug label 2026-05-04 22:30:20 -05:00
Author
Owner

@jmorganca commented on GitHub (Nov 8, 2025):

Thanks for reporting. This should be fixed now. Sorry for the issue!

<!-- gh-comment-id:3505628512 --> @jmorganca commented on GitHub (Nov 8, 2025): Thanks for reporting. This should be fixed now. Sorry for the issue!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#70672