Kong/insomnia · error

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

Error message

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

What it means

Error "The reflection server api key doesn't have access to the module or the module does not exists" thrown in Kong/insomnia.

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)

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.