Skip to content

Errors don't contain logs for debugging - how to debug parsing errors? #997

@jmander11

Description

@jmander11

Describe the bug
When errors occur during searches there is no obvious path that can be taken to solve the issue.

For example, I see these logs when I make a search like "How do embedding models work?":
An error occurred while searching images: Error: Error parsing response from OpenAI: [
{
"expected": "object",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected object, received null"
}
]
An error occurred while searching videos: Error: Error parsing response from OpenAI: [
{
"expected": "object",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected object, received null"
}
]

What do I do with this information? I am running gpt-oss-20b and the response is not logged here for me to identify the issue. I'm going to have to go change vllm code to output the full llm generated message to understand what is happening here if there is no debug variable I can enable.

To Reproduce
Use gpt-oss-20b and make any search?

I have a 128k context window set and the tool parser/auto tool choice enabled with vllm.

Expected behavior
Ideally, I see the malformed snippet and entire response as 2 log messages when this occurs.

When the app tracebacks I can at least infer from the unhandled exception what the issue is, but I'm completely blind when it just says error parsing without telling me why :(

Additional context
I also couldn't get qwen3-30b-a3b to work, but that seems like it's because it's expected to use xml? It would probably be useful if the perplexica page mentions how to set up json parsing to work with perplexica and that a json model is necessary.

Is perplexica expecting the json in a separate tool call field or as part of the user message response? This would help me craft a user system message to possibly fix the malformed model output.

Thanks for any tips!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions