// libSQL error reference

409 Conflict: 409 Conflict

The platform request conflicts with existing state, most often creating a database or token whose name already exists.

오류
409 Conflict
카테고리
Remote server and Hrana errors
오류 메시지
Server returned HTTP status 409 Conflict

의미

Turso's response-code reference lists 409 as Resource already exists. On the platform API that is nearly always a create whose name is taken; anything beyond that is speculative. It is a platform API response, not something a SQL pipeline produces.

일반적인 원인

  • Creating a database, token, or group with a name that already exists.
  • A concurrent change to the same resource won the race.

Find the cause

`turso db list` (and `turso group list` for groups) shows the existing resource that owns the name. If nothing appears listed, check the active organization with `turso org list`: names collide inside one org, not globally.

해결 방법

  1. List existing resources and pick a new name or reuse the existing one:

    turso db list

Other ways to handle it

Reuse the existing resource when it matches what you wanted, or pick a new name. In deploy scripts, treat a 409 on create as success when the existing resource matches, which makes the script idempotent.

안전하게 재현하세요

Local and honest against the platform: `turso db create name-demo` twice; the second create collides with the first and the API answers 409 (the CLI prints its own wording). Needs a real account; nothing to reproduce offline.

질문

Why do I get 409 when creating a Turso database with a name I just deleted?

확인 turso db list in the active organization first: the delete may have targeted another org, or another resource (a group, a token name) owns the name. The API answers 409 only when something with that name still exists.

Does 409 come from SQL statements?

No. It is a platform API status for create collisions. A duplicate unique key inside a table is a SQLite constraint error, not HTTP 409.

관련 오류

More remote server and hrana errors errors

코드와 메시지 텍스트의 출처는 다음과 같습니다 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. 라이선스 세부 정보 인용된 오류 메시지 텍스트의 권리는 해당 데이터베이스 공급업체에 있습니다.