Kong/insomnia · error

Invalid reflection server api key

Error message

Invalid reflection server api key

What it means

Error "Invalid reflection server api key" thrown in Kong/insomnia.

Source

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

      return [];
    }
    const packageDefinition = protoLoader.loadFileDescriptorSetFromBuffer(
      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,

View on GitHub (pinned to d9bb2b0142)

When it happens

Trigger: Thrown at packages/insomnia/src/main/ipc/grpc.ts:208 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/32e1f86949bd5e97. Report an issue: GitHub.