{"record":{"id":"461fe0c9e100f327","repo":"FlowiseAI/Flowise","slug":"pipedream-mcp-error-error-message-unknown-e","errorCode":null,"errorMessage":"Pipedream MCP error: ${error.message ?? 'Unknown error'}","messagePattern":"Pipedream MCP error: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/components/nodes/tools/MCP/Pipedream/PipedreamMCP.ts","lineNumber":359,"sourceCode":"            if (tools.length === 0) {\n                throw new Error(`No tools available for the Pipedream app slug \"${appSlug}\". Please check your configuration.`)\n            }\n\n            return tools\n        } catch (error: any) {\n            if (error.message?.includes('404')) {\n                throw new Error(`Pipedream app slug \"${appSlug}\" not found. Please verify the slug on mcp.pipedream.com.`)\n            }\n            if (error.message?.includes('401')) {\n                throw new Error('Invalid Pipedream credentials. Please verify your Client ID and Client Secret.')\n            }\n            if (error.message?.includes('timeout') || error.message?.includes('ECONNABORTED')) {\n                throw new Error('Connection to Pipedream MCP server timed out. Please check your network connectivity.')\n            }\n            if (error.message?.includes('ECONNREFUSED')) {\n                throw new Error('Connection refused by Pipedream MCP server. The service may be temporarily unavailable.')\n            }\n            throw new Error(`Pipedream MCP error: ${error.message ?? 'Unknown error'}`)\n        }\n    }\n}\n\nmodule.exports = { nodeClass: Pipedream_MCP }\n","sourceCodeStart":341,"sourceCodeEnd":365,"githubUrl":"https://github.com/FlowiseAI/Flowise/blob/abe4a8601a058047b350c260676826e21dd14101/packages/components/nodes/tools/MCP/Pipedream/PipedreamMCP.ts#L341-L365","documentation":"The final catch-all in getTools: any error from toolkit.initialize()/tool building not matched by the 404/401/timeout/ECONNREFUSED branches is re-thrown prefixed with 'Pipedream MCP error:' and the underlying message (or 'Unknown error' if absent).","triggerScenarios":"An unexpected failure during MCP initialization or tool construction — e.g. SSE handshake error, JSON parse error, Zod schema error, or a 5xx from Pipedream that doesn't match the keyword checks.","commonSituations":"Pipedream returns 500; the SSE transport fails mid-stream; the toolkit throws an undocumented error type; partial/garbled response; unhandled edge case in createPipedreamTool before allSettled.","solutions":["Read the appended underlying message to identify the real cause.","If it indicates a server (5xx) error, retry after checking Pipedream status.","If it indicates a schema/parse error, verify toolkit and node versions are current.","Add temporary logging of the raw error object to capture stack/status not present in message."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { await pipedream.getTools(nodeData, options) }\ncatch (e) {\n    const m = e instanceof Error ? e.message : ''\n    if (m.startsWith('Pipedream MCP error:')) {\n        const detail = m.slice('Pipedream MCP error:'.length).trim()\n        // classify: 5xx -> retry/incident; parse/schema -> version check\n    }\n}","preventionTips":["Log the full error object (status, stack) since the wrapped message may lose detail.","Keep the MCP toolkit and Pipedream node on current versions to avoid schema mismatches.","Add the underlying error code to the thrown message for faster triage."],"tags":["pipedream","mcp","error-handling","diagnostics","fallback"],"backgroundTag":null,"analyzedSha":"abe4a8601a058047b350c260676826e21dd14101","analyzedAt":"2026-08-12T16:04:40.823Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}