Skip to content

JSON parser reached the 10th character (line 1, column 11) and expected a : but found something else (usually the start of a new key or a missing colon). #314

@hkjang

Description

@hkjang
  • vLLM OpenAI-compatible API returned something that is not valid JSON (e.g. plain text, HTML error)
  • Request headers are missing Content-Type: application/json
  • Request body is not valid JSON
  • JSON.parse a streaming response (stream: true)

index-1ce5adbc.js:681 SyntaxError: Expected ':' after property name in JSON at position 10 (line 1 column 11)
    at JSON.parse (<anonymous>)
    at v (index-1ce5adbc.js:484:3942)
    at async Object.onSubmit [as mutationFn] (index-1ce5adbc.js:484:4281)
onError @ index-1ce5adbc.js:681
execute @ index-1ce5adbc.js:68
await in execute
mutate @ index-1ce5adbc.js:68
(anonymous) @ index-1ce5adbc.js:681
(anonymous) @ index-1ce5adbc.js:681
onKeyDown @ index-1ce5adbc.js:681
Kfe @ index-1ce5adbc.js:37
Xfe @ index-1ce5adbc.js:37
Yfe @ index-1ce5adbc.js:37
M$ @ index-1ce5adbc.js:37
ioe @ index-1ce5adbc.js:37
(anonymous) @ index-1ce5adbc.js:37
$H @ index-1ce5adbc.js:40
Oae @ index-1ce5adbc.js:37
Bv @ index-1ce5adbc.js:37
hH @ index-1ce5adbc.js:37
p9e @ index-1ce5adbc.js:37Understand this errorAI
VM51:1 Uncaught (in promise) SyntaxError: Expected ':' after property name in JSON at position 10 (line 1 column 11)
    at JSON.parse (<anonymous>)
    at v (index-1ce5adbc.js:484:3942)
    at async Object.onSubmit [as mutationFn] (index-1ce5adbc.js:484:4281)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions