Skip to content

TypeError querying unnamed temporary storage #52

@jwoehr

Description

@jwoehr

My program queries unnamed temporary storage. The mcp server issues an error of which I have caught this much:

             at async ErrorHandler.tryCatch.operation (file:///home/jwoehr/work/AI/MCP/ibmi-mcp-server/server/dist/ibmi-mcp-server/utils/config/toolConfigBuilder.js:269:32)
              at async ErrorHandler.tryCatch (file:///home/jwoehr/work/AI/MCP/ibmi-mcp-server/server/dist/utils/internal/errorHandler.js:203:20)
              at async file:///home/jwoehr/work/AI/MCP/ibmi-mcp-server/server/dist/utils/internal/performance.js:60:28
              at async file:///home/jwoehr/work/AI/MCP/ibmi-mcp-server/server/dist/ibmi-mcp-server/utils/config/toolDefinitions.js:193:32
          caused by: TypeError: Cannot read properties of undefined (reading 'getRunningCount')
              at t.Pool.getJob (/home/jwoehr/work/AI/MCP/ibmi-mcp-server/server/node_modules/@ibm/mapepire-js/dist/index.js:1:2836)
              at t.Pool.execute (/home/jwoehr/work/AI/MCP/ibmi-mcp-server/server/node_modules/@ibm/mapepire-js/dist/index.js:1:3184)
              at ErrorHandler.tryCatch.operation (file:///home/jwoehr/work/AI/MCP/ibmi-mcp-server/server/dist/ibmi-mcp-server/services/baseConnectionPool.js:198:49)
              at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
              at async ErrorHandler.tryCatch (file:///home/jwoehr/work/AI/MCP/ibmi-mcp-server/server/dist/utils/internal/errorHandler.js:203:20)
      "code": -32603,
      "details": {
        "originalErrorName": "TypeError",
        "originalMessage": "Cannot read properties of undefined (reading 'getRunningCount')"
      },
      "name": "McpError"
    }

I suspect there is no unnamed temporary storage in use at the moment and the code doesn't handle undefined.

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