Skip to content

When chat to Open MCP Client, no response and got GraphQLError #11

@zhufeizzz

Description

@zhufeizzz

Image

ErrorLogs

 ✓ Compiled /api/copilotkit in 1297ms
 POST /api/copilotkit 200 in 1791ms
 POST /api/copilotkit 200 in 1800ms
 POST /api/copilotkit 200 in 1804ms
Error getting response: [TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined] {
  code: 'ERR_INVALID_ARG_TYPE'
}
Error getting response: [TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined] {
  code: 'ERR_INVALID_ARG_TYPE'
}
[17:24:26.112] ERROR: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
    component: "Yoga GraphQL"
    err: {
      "type": "GraphQLError",
      "message": "The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined",
      "stack":
          TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
              at Hash.update (node:internal/crypto/hash:115:11)
              at Object.langGraphAgentHandler (F:\GitHub\LLM\open-mcp-client\.next\server\chunks\a7392_@copilotkit_runtime_dist_index_808c46bc.js:3030:81)
              at CopilotRuntime.processAgentRequest (F:\GitHub\LLM\open-mcp-client\.next\server\chunks\a7392_@copilotkit_runtime_dist_index_808c46bc.js:4204:47)
              at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
              at async CopilotRuntime.processRuntimeRequest (F:\GitHub\LLM\open-mcp-client\.next\server\chunks\a7392_@copilotkit_runtime_dist_index_808c46bc.js:3949:24)
              at async CopilotResolver.generateCopilotResponse (F:\GitHub\LLM\open-mcp-client\.next\server\chunks\a7392_@copilotkit_runtime_dist_index_808c46bc.js:5211:142)
              at async F:\GitHub\LLM\open-mcp-client\.next\server\chunks\node_modules__pnpm_d10eac87._.js:44419:22
              at async handleParams (F:\GitHub\LLM\open-mcp-client\.next\server\chunks\node_modules__pnpm_d10eac87._.js:41657:22)
              at async YogaServer.getResultForParams (F:\GitHub\LLM\open-mcp-client\.next\server\chunks\node_modules__pnpm_d10eac87._.js:41703:20)
              at async handle (F:\GitHub\LLM\open-mcp-client\.next\server\chunks\node_modules__pnpm_d10eac87._.js:41759:24)
      "path": [
        "generateCopilotResponse"
      ],
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "extensions": {}
    }
 POST /api/copilotkit 200 in 225ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions