{"record":{"id":"32e1f86949bd5e97","repo":"Kong/insomnia","slug":"invalid-reflection-server-api-key","errorCode":null,"errorMessage":"Invalid reflection server api key","messagePattern":"Invalid reflection server api key","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/main/ipc/grpc.ts","lineNumber":208,"sourceCode":"      return [];\n    }\n    const packageDefinition = protoLoader.loadFileDescriptorSetFromBuffer(\n      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,","sourceCodeStart":190,"sourceCodeEnd":226,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/main/ipc/grpc.ts#L190-L226","documentation":"gRPC reflection error mapping in getMethodsFromReflectionServer: the reflection server responded with the Connect Unauthenticated code, meaning the configured reflection server API key is invalid or missing. The raw connect error is normalized to this message for the renderer.","triggerScenarios":"Thrown at packages/insomnia/src/main/ipc/grpc.ts:208 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the reflection server API key in the gRPC request settings","Verify the key has reflection access on the server","Regenerate the key if it was revoked"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","contentChangedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}