403 Error using Turso in local development when running wrangler dev with `--remote` flag
LibsqlError: SERVER_ERROR: Server returned HTTP status 403 at mapHranaError (index.js:12991:12) at HttpClient2.execute (index.js:13296:13) at async PreparedQuery.all (index.js:13476:18) at async index.js:14053:26 at async index.js:2793:5 at async index.js:2695:7 at async index.js:2022:62 at async jsonError (index.js:14078:12) { code: SERVER_ERROR, name: LibsqlError, stack: LibsqlError: SERVER_ERROR: Server returned HTTP st…022:62 at async jsonError (index.js:14078:12), message: SERVER_ERROR: Server returned HTTP status 403, cause: HttpServerError: Server returned HTTP status 403 at errorFromResponse (index.js:12380:10) a…}
LibsqlError: SERVER_ERROR: Server returned HTTP status 403 at mapHranaError (index.js:12991:12) at HttpClient2.execute (index.js:13296:13) at async PreparedQuery.all (index.js:13476:18) at async index.js:14053:26 at async index.js:2793:5 at async index.js:2695:7 at async index.js:2022:62 at async jsonError (index.js:14078:12) { code: SERVER_ERROR, name: LibsqlError, stack: LibsqlError: SERVER_ERROR: Server returned HTTP st…022:62 at async jsonError (index.js:14078:12), message: SERVER_ERROR: Server returned HTTP status 403, cause: HttpServerError: Server returned HTTP status 403 at errorFromResponse (index.js:12380:10) a…}
You only get this error when running wrangler dev with --remote flag.
wrangler dev src/index.ts #workswrangler dev src/index.ts --remote #gets libsql 403 error
wrangler dev src/index.ts #workswrangler dev src/index.ts --remote #gets libsql 403 error