Skip to content

qwen-code MCP zod error on startup #5

Description

@samjtro

seems like there's some sort of bug with zod validation for the Opun MCP server on-startup with Qwen. after debugging it seems to be an internal error, will report and leave as is -- doesn't seemingly affect functionality.

Data collection is disabled.
MCP ERROR (opun): [
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_union",
            "unionErrors": [
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "string",
                    "received": "null",
                    "path": [
                      "id"
                    ],
                    "message": "Expected string, received null"
                  }
                ],
                "name": "ZodError"
              },
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "number",
                    "received": "null",
                    "path": [
                      "id"
                    ],
                    "message": "Expected number, received null"
                  }
                ],
                "name": "ZodError"
              }
            ],
            "path": [
              "id"
            ],
            "message": "Invalid input"
          },
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "method"
            ],
            "message": "Required"
          },
          {
            "code": "unrecognized_keys",
            "keys": [
              "error"
            ],
            "path": [],
            "message": "Unrecognized key(s) in object: 'error'"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "method"
            ],
            "message": "Required"
          },
          {
            "code": "unrecognized_keys",
            "keys": [
              "error",
              "id"
            ],
            "path": [],
            "message": "Unrecognized key(s) in object: 'error', 'id'"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_union",
            "unionErrors": [
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "string",
                    "received": "null",
                    "path": [
                      "id"
                    ],
                    "message": "Expected string, received null"
                  }
                ],
                "name": "ZodError"
              },
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "number",
                    "received": "null",
                    "path": [
                      "id"
                    ],
                    "message": "Expected number, received null"
                  }
                ],
                "name": "ZodError"
              }
            ],
            "path": [
              "id"
            ],
            "message": "Invalid input"
          },
          {
            "code": "invalid_type",
            "expected": "object",
            "received": "undefined",
            "path": [
              "result"
            ],
            "message": "Required"
          },
          {
            "code": "unrecognized_keys",
            "keys": [
              "error"
            ],
            "path": [],
            "message": "Unrecognized key(s) in object: 'error'"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_union",
            "unionErrors": [
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "string",
                    "received": "null",
                    "path": [
                      "id"
                    ],
                    "message": "Expected string, received null"
                  }
                ],
                "name": "ZodError"
              },
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "number",
                    "received": "null",
                    "path": [
                      "id"
                    ],
                    "message": "Expected number, received null"
                  }
                ],
                "name": "ZodError"
              }
            ],
            "path": [
              "id"
            ],
            "message": "Invalid input"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [],
    "message": "Invalid input"
  }
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions