Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview
On this page

Overloaded

Too many calls arrived at once, for one luna, one key, one route or one environment, so Luna turned this one away.

Overloaded means too many calls arrived at once, and Luna turned this one away before it ran. The status is 429.

Issue

A call fails with Overloaded. The message names the rate or the queue that was full. In a luna, the LunaCallError has retryable: true.

Cause

Message Cause
rate limit exceeded for this publishable key The publishable key passed the calls per second it was made with
over this route's rate limit An HTTP route’s rateLimit was reached for this caller or address
<TYPE> <KEY> has too many calls in flight One luna already holds 1,000 calls running or waiting
the tenant is over its request quota The environment passed its request rate
a connection can have at most 128 live queries One app connection subscribed to too many queries
the luna's objects would pass <CAP> bytes (it holds <USED>) The luna’s files would pass 1 TiB in total

A route’s answer carries a Retry-After header with the seconds to wait.

Overloaded differs from QuotaExceeded. Overloaded passes in a moment, once the burst does. QuotaExceeded lasts until a limit changes or a new month starts. A request rate shared across your organisation answers QuotaExceeded instead.

Solution

Retry after a pause that grows with each attempt. The call never ran, so a retry is safe.

  • For a publishable key, make one with a higher rate using luna keys create --rate.
  • For one busy luna, spread the work over more keys, so that more lunas share it.
  • For live queries, close the ones a screen no longer shows.
  • For a luna’s files, a retry does not help. Delete files the luna no longer needs first.

Limits lists your plan’s quotas and Luna’s fixed limits.

Was this page helpful?