402 Payment Required: 402 Payment Required
Turso's API returned 402 when the account is past its plan limits or payment lapsed; check billing and plan quotas.
- 錯誤
402 Payment Required
它的意義
Turso's response-code reference lists 402 as payment required, with the advice to check you have an active subscription. Distinguish it from 429: 429 is a rate or quota burst, 402 means the account itself is not in good standing.
常見原因
- Subscription lapsed or payment failed.
- The free or paid plan no longer covers the resource you are using.
Find the cause
Open the billing portal with `turso org billing` and check the plan with `turso plan show`. Distinguish the three money-adjacent failures: 402 means the account is not in good standing, `BLOCKED` means a monthly quota is exhausted, 429 means a burst rate limit.
如何修正
-
Check plan and billing in the Turso dashboard, then retry.
Other ways to handle it
Fix the account state, or change plan with turso plan select <plan> 或 turso plan upgrade. If overages are the surprise, turso plan overages enable/disable controls whether usage past the quota bills.
安全地重現問題
Needs an account actually past its billing: there is no honest repro without one, and the docs mapping (402 means you should check you have an active subscription) is the verifiable part. Do not fabricate a billing failure locally.
問題
What is the difference between 402, 429, and BLOCKED on Turso?
402 means the account itself is not in good standing (subscription lapsed or payment failed). 429 is a short-term request-rate limit. BLOCKED means a monthly usage quota (row reads, row writes, storage) is exhausted.
How do I fix a 402 from Turso?
開啟 turso org billing and resolve the subscription or payment, then retry. No connection or query change fixes a billing-state failure.
相關錯誤
429 Too Many Requestsrequest rate limit hit409 Conflict409 Conflict401 Unauthorized401 Unauthorized: bad or missing auth token
More remote server and hrana errors errors
404 Not Found404 Not Found: unknown database or endpointconnection reset / interruptedConnection reset or droppedtoo many connectionsToo many connections to one databaseTransaction timed-outinteractive transaction abortedError in remote responseError in remote response500 Internal Server Errorserver failed on a valid requestdatabase not foundturso CLI: database not found
程式碼和訊息文字來自 libSQL / Turso documentation。瀏覽完整的 libSQL error list 或 搜尋每個資料庫錯誤.
Work on libSQL in SQLly
A native SQL client for macOS, Windows and Linux with schema-aware IntelliSense, guardrails for risky statements and clear error messages, for libSQL and the other databases you use.
本頁文字與資料: CC BY 4.0,請註明出處 SQLly (sqlly.app)。 程式碼與 SQL 片段: MIT. 授權詳情 引用的錯誤訊息文字歸其資料庫廠商所有。