{"record":{"id":"5f880dc5e73295fa","repo":"Kong/insomnia","slug":"the-reflection-server-api-key-doesn-t-have-access","errorCode":null,"errorMessage":"The reflection server api key doesn't have access to the module or the module does not exists","messagePattern":"The reflection server api key doesn't have access to the module or the module does not exists","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/main/ipc/grpc.ts","lineNumber":211,"sourceCode":"      Buffer.from(res.fileDescriptorSet.toBinary()),\n    );\n    for (const definition of Object.values(packageDefinition)) {\n      const serviceDefinition = asServiceDefinition(definition);\n      if (serviceDefinition === null) {\n        continue;\n      }\n      const serviceMethods = Object.values(serviceDefinition);\n      methodDefs.push(...serviceMethods);\n    }\n    return methodDefs;\n  } catch (error) {\n    const connectError = ConnectError.from(error);\n    switch (connectError.code) {\n      case Code.Unauthenticated: {\n        throw new Error('Invalid reflection server api key');\n      }\n      case Code.NotFound: {\n        throw new Error(\n          \"The reflection server api key doesn't have access to the module or the module does not exists\",\n        );\n      }\n      default: {\n        throw error;\n      }\n    }\n  }\n};\nconst getMethodsFromReflection = async (\n  host: string,\n  metadata: GrpcRequestHeader[],\n  rejectUnauthorized: boolean,\n  reflectionApi: GrpcRequest['reflectionApi'],\n  disableUserAgentHeader: boolean,\n  clientCert?: string,\n  clientKey?: string,\n  caCertificate?: string,","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/main/ipc/grpc.ts#L193-L229","documentation":"Error \"The reflection server api key doesn't have access to the module or the module does not exists\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/main/ipc/grpc.ts:211 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"}