Kong/insomnia · error

The reflection server api key doesn't have access to the…

Error message

The reflection server api key doesn't have access to the module or the module does not exists

What it means

gRPC reflection error mapping in getMethodsFromReflectionServer: the reflection server responded with Permission Denied — the API key is valid but lacks access to the target module, or the module does not exist on the server.

Solutions

  1. Check the module name/path spelling
  2. Grant the API key access to the module
  3. Verify the module is deployed on the reflection server
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/insomnia/src/main/ipc/grpc.ts:211 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26). Data as JSON: /api/errors/5f880dc5e73295fa. Report an issue: GitHub.

Appendix: source

Thrown at packages/insomnia/src/main/ipc/grpc.ts:211

      Buffer.from(res.fileDescriptorSet.toBinary()),
    );
    for (const definition of Object.values(packageDefinition)) {
      const serviceDefinition = asServiceDefinition(definition);
      if (serviceDefinition === null) {
        continue;
      }
      const serviceMethods = Object.values(serviceDefinition);
      methodDefs.push(...serviceMethods);
    }
    return methodDefs;
  } catch (error) {
    const connectError = ConnectError.from(error);
    switch (connectError.code) {
      case Code.Unauthenticated: {
        throw new Error('Invalid reflection server api key');
      }
      case Code.NotFound: {
        throw new Error(
          "The reflection server api key doesn't have access to the module or the module does not exists",
        );
      }
      default: {
        throw error;
      }
    }
  }
};
const getMethodsFromReflection = async (
  host: string,
  metadata: GrpcRequestHeader[],
  rejectUnauthorized: boolean,
  reflectionApi: GrpcRequest['reflectionApi'],
  disableUserAgentHeader: boolean,
  clientCert?: string,
  clientKey?: string,
  caCertificate?: string,

View on GitHub (pinned to d9bb2b0142)