OK
gRPCINFOSuccessHIGH confidence

The request completed successfully

What this means

Indicates that the RPC was successful. This is the only code that represents a successful operation and does not indicate an error.

Why it happens
  1. 1The client sent a valid request and the server processed it successfully.
  2. 2The operation requested by the client was completed without any issues.
  3. 3For streaming RPCs, the stream was closed gracefully by the server after all messages were sent and processed.
How to reproduce

A client makes a successful call to a gRPC method.

trigger — this will error
trigger — this will error
// Successful gRPC client call
try {
  const response = await client.myMethod(request);
  console.log("Success:", response);
} catch (e) {
  // This block is not reached for status OK
}

expected output

// No error is thrown, the response object is returned.

Fix 1

No fix needed

WHEN This status code indicates success.

No fix needed
// No fix is necessary. The code indicates the operation was successful.
// You can proceed with processing the response from the server.

Why this works

This is the expected outcome for a successful RPC.

Fix 2

Process the response

WHEN After receiving an OK status.

Process the response
const response = await client.myMethod(request);
// Your application logic to handle the successful response
processResponse(response);

Why this works

The primary action is to use the data returned by the server.

What not to do

Treat this as an error

This is the sole indicator of a successful operation; treating it as an error will break application flow.

Sources

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All gRPC errors