Autumn’s SDKs include a fail-open mechanism that prevents your application from going down if Autumn is temporarily unreachable. When enabled, critical SDK methods return safe default responses instead of throwing errors.Documentation Index
Fetch the complete documentation index at: https://docs.useautumn.com/llms.txt
Use this file to discover all available pages before exploring further.
Why fail-open?
As a billing engine, Autumn sits in the critical path of your application. If your app callscheck() to gate access to a feature, and Autumn is unreachable, that call would throw an error — effectively blocking your users from accessing your product.
Fail-open ensures your users are never blocked by an Autumn outage. Usage events may be lost during the outage, but your customers stay unaffected.
Behavior
Fail-open is enabled by default. When Autumn is unreachable (network errors, timeouts, or server errors returning 5XX status codes), the SDK returns safe defaults:| Method | Default response | Effect |
|---|---|---|
check() | { allowed: true } | Users retain access to features |
track() | { value: 0, balance: null } | Usage event is silently dropped |
customers.getOrCreate() | Sentinel customer with id: null | Returns a valid but empty customer object |
When fail-open triggers
Fail-open activates when the SDK encounters:- Server errors — Autumn returns a 5XX status code (500, 502, 503, etc.)
- Network failures — DNS resolution failure, connection refused, connection reset
- Timeouts — The request to Autumn times out
Configuration
Disabling fail-open
If you prefer strict error handling and want all Autumn errors to propagate:Detecting fail-open responses
Whencheck() fails open, the response will have allowed: true with empty values:
customers.getOrCreate() fails open, the returned customer will have id: null:
Console output
When fail-open triggers, you’ll see this in your server logs:SDK support
| SDK | Fail-open support |
|---|---|
@useautumn/sdk (TypeScript) | Supported |
autumn-python (Python) | Coming soon |
autumn-js (framework SDK) | Coming soon |

