Skip to content

4 min read · Updated 27 November 2026

gRPC Unauthenticated, PermissionDenied and Other Errors

gRPC Unauthenticated on OrbitFlare? Fix it, plus PermissionDenied, invalid x-token, RESOURCE_EXHAUSTED and 14 UNAVAILABLE on Yellowstone and Jetstream.

Seeing gRPC Unauthenticated on OrbitFlare? The connection reached us with no valid x-token. Every Yellowstone and Jetstream connection has to carry your license key as x-token metadata, whitelisted IP or not. Other errors you may run into are in the table.

gRPC Unauthenticated and other errors, with fixes

Error What it means Fix
Unauthenticated "authentication required: provide x-token header" No x-token was sent Send the license key as x-token metadata
invalid x-token: api key not found The key is wrong or was regenerated Copy the current key from the dashboard
PermissionDenied "gRPC is not enabled for this api key" The license has no mainnet gRPC Add gRPC to the plan, or use a license that has it
PermissionDenied or IP not whitelisted for this api key IP Whitelist mode and your IP isn't on the list Whitelist the server's public IP
RESOURCE_EXHAUSTED "connection limit exceeded" Too many connections from your IP Use fewer connections; see below
"too many concurrent subscribe streams" or RST_STREAM Too many streams on one connection Close streams you no longer need
14 UNAVAILABLE on Jetstream Wrong host or port Use http://{region}.jetstream.orbitflare.com, port 80

Sending the key correctly

The key travels as gRPC metadata, never in the URL, because gRPC has no query string and doesn't look at an x-api-key header. Clients usually expose a metadata map or a token setting for it. With the Yellowstone TypeScript client, pass it as the second argument to the constructor:

import Client from "@triton-one/yellowstone-grpc";

const client = new Client("http://fra.rpc.orbitflare.com:10000", process.env.ORBITFLARE_LICENSE_KEY, {
  "grpc.max_receive_message_length": 64 * 1024 * 1024,
});

Retrying over and over with a bad key earns the client a short block of a few seconds once the failures pile up, so looping on a wrong key backfires. Sort out the key, and only then reconnect.

Too many connections or streams

On shared plans, each IP may hold 5 gRPC connections. Use one connection, run your streams over it, and combine several filters per stream. Close a stream before you replace it, and check that a crash loop isn't leaving old connections behind. The complete list is in gRPC and WebSocket connection limits.

Subscriptions that are refused

Asking for everything from the Token Program or the System Program gets refused: together they appear in nearly every transaction. Subscribe to just the accounts or programs your app cares about.

For the rest of the auth errors, read Which OrbitFlare API key do I use?; the hosts are listed in which plans include Yellowstone gRPC and Jetstream.

Was this guide useful?

A useful starting point

Edit the brief, then copy it and open your assistant. Paste it into a new chat to get started.

Official sources included. You choose when to send.