Skip to content

Error: LANGDOCK + Claude Sonnet 4.6 - Error 400 #11230

@homezonebenny

Description

@homezonebenny

EDIT

I figured out when the error message appears:

Image

When you use the ( 1 ) Text-Field it works.
When you use ( 2 ) Text-Field it shows the error message.

Original Error Report

Error Details

Model: CODE A (Fast): Claude Sonnet 4.6
Provider: anthropic
Status Code: 400

Error Output

[{"code":"invalid_union","errors":[[{"expected":"string","code":"invalid_type","path":[],"message":"Invalid input: expected string, received array"}],[{"code":"invalid_union","errors":[[{"code":"invalid_value","values":["text"],"path":["type"],"message":"Invalid input: expected \"text\""},{"expected":"string","code":"invalid_type","path":["text"],"message":"Invalid input: expected string, received undefined"}],[{"code":"invalid_value","values":["image"],"path":["type"],"message":"Invalid input: expected \"image\""},{"expected":"object","code":"invalid_type","path":["source"],"message":"Invalid input: expected object, received undefined"}],[{"code":"invalid_value","values":["tool_use"],"path":["type"],"message":"Invalid input: expected \"tool_use\""},{"expected":"string","code":"invalid_type","path":["id"],"message":"Invalid input: expected string, received undefined"},{"expected":"string","code":"invalid_type","path":["name"],"message":"Invalid input: expected string, received undefined"},{"expected":"object","code":"invalid_type","path":["input"],"message":"Invalid input: expected object, received undefined"}],[{"code":"invalid_value","values":["tool_result"],"path":["type"],"message":"Invalid input: expected \"tool_result\""},{"expected":"string","code":"invalid_type","path":["tool_use_id"],"message":"Invalid input: expected string, received undefined"},{"code":"invalid_union","errors":[[{"expected":"string","code":"invalid_type","path":[],"message":"Invalid input: expected string, received undefined"}],[{"expected":"array","code":"invalid_type","path":[],"message":"Invalid input: expected array, received undefined"}]],"path":["content"],"message":"Invalid input"}]],"path":[0],"message":"Invalid input"}]],"path":["messages",1,"content"],"message":"Invalid input"}]

This is my config:

name: Local Config
version: 1.0.0
schema: v1
models:
  - name: "CODE A (Fast): Claude Sonnet 4.6"
    provider: anthropic
    model: claude-sonnet-4-6-default
    apiKey: sk-XXX
    apiBase: https://api.langdock.com/anthropic/eu/v1

Any Ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationRelates to configuration optionskind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions