[Bug]: Consistently getting `Invalid json output` for Anthropic models
Is this a reproducible bug?
- I confirm this is a reproducible bug, not a feature request, idea, question, or contribution proposal.
What did you do when it broke?
I've been consistently getting the Invalid json output error when using the Anthropic models. If I switch to OpenAI models every works as expected when generating a podcast.
This was working consistently until a week or so ago. Now I cannot generate podcasts at all. This makes the think it is something outside of Open Notebook.
I've switched to running the latest dev build, but the error continues.
This work
The error:
open_notebook-1 | 2026-09-29 08:00:11.308 | ERROR | surreal_commands.core.service:execute_command:287 - Error executing command open_notebook.generate_podcast (command:9aggaav9697su07r3mi1): Invalid json output:
open_notebook-1 | For troubleshooting, visit: https://docs.langchain.com/oss/python/langchain/errors/OUTPUT_PARSING_FAILUREHow did it break?
Expected: Podcast to be generated Actual: Failing with Invalid JSON error
Logs or Screenshots
open_notebook-1 | 2026-09-29 08:00:11.308 | ERROR | surreal_commands.core.service:execute_command:287 - Error executing command open_notebook.generate_podcast (command:9aggaav9697su07r3mi1): Invalid json output: open_notebook-1 | For troubleshooting, visit: https://docs.langchain.com/oss/python/langchain/errors/OUTPUT_PARSING_FAILURE
Open Notebook Version
v1-latest (Docker)
Environment
services: surrealdb: image: surrealdb/surrealdb:v2 command: start --log info --user ${SURREAL_USER:-root} --pass ${SURREAL_PASSWORD:-root} rocksdb:/mydata/mydatabase.db user: root volumes: - ./surreal_data:/mydata environment: - SURREAL_EXPERIMENTAL_GRAPHQL=true restart: always pull_policy: always
open_notebook: image: lfnovo/open_notebook:v1-dev env_file: - .env ports: - "8502:8502" environment: - SURREAL_URL=ws://surrealdb:8000/rpc - SURREAL_USER=${SURREAL_USER:-root} - SURREAL_PASSWORD=${SURREAL_PASSWORD:-root} - SURREAL_NAMESPACE=open_notebook - SURREAL_DATABASE=open_notebook - API_URL=https://hermes.notebook.cloudandthings.dev - LOGLEVEL=DEBUG - RUST_LOG=debug - ESPERANTO_LLM_TIMEOUT=180 - API_CLIENT_TIMEOUT=300 volumes: - ./notebook_data:/app/data depends_on: - surrealdb restart: always pull_policy: always
Additional Context
No response
Contribution
- I am a developer and would like to work on fixing this issue (pending maintainer approval)
Source: lfnovo/open-notebook