{"record":{"id":"18dff470049cb8f2","repo":"Kong/insomnia","slug":"unsupported-method-type-methodtype","errorCode":null,"errorMessage":"Unsupported method type: ${methodType}","messagePattern":"Unsupported method type: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/main/ipc/grpc.ts","lineNumber":481,"sourceCode":"            requestPath,\n            method.requestSerialize,\n            method.responseDeserialize,\n            messageBody,\n            filterDisabledOrInvalidMetaData(request.metadata),\n          );\n          onStreamingResponse(event, serverCall, request._id);\n          grpcCalls.set(request._id, serverCall);\n        } else if (methodType === 'bidi') {\n          const bidiCall = client.makeBidiStreamRequest(\n            requestPath,\n            method.requestSerialize,\n            method.responseDeserialize,\n            filterDisabledOrInvalidMetaData(request.metadata),\n          );\n          onStreamingResponse(event, bidiCall, request._id);\n          grpcCalls.set(request._id, bidiCall);\n        } else {\n          throw new Error(`Unsupported method type: ${methodType}`);\n        }\n        // Update request stats\n        services.stats.incrementExecutedRequests();\n        event.reply('grpc.start', request._id);\n      } catch (error) {\n        // TODO: How do we want to handle this case, where the message cannot be parsed?\n        //  Currently an error will be shown, but the stream will not be cancelled.\n        event.reply('grpc.error', request._id, error);\n      }\n      return;\n    })\n    .catch(error => {\n      event.reply('grpc.error', request._id, error);\n    });\n};\n\nexport const sendMessage = (event: IpcMainEvent, { body, requestId }: GrpcIpcMessageParams) => {\n  try {","sourceCodeStart":463,"sourceCodeEnd":499,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/main/ipc/grpc.ts#L463-L499","documentation":"Error \"Unsupported method type: ${methodType}\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/main/ipc/grpc.ts:481 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}