Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deco records script pullProd.ts is failing trying to create a db with file:// #869

Closed
igorbrasileiro opened this issue Sep 18, 2024 · 0 comments · Fixed by #865
Closed
Labels

Comments

@igorbrasileiro
Copy link
Contributor

igorbrasileiro commented Sep 18, 2024

Issue Type

  • Bug Report

Description

run records/scripts/pullProd.ts causes error:

deno task db:pull:prod
Task db:pull:prod deno eval --env 'import "apps/records/scripts/pullProd.ts"'
LibsqlError: URL_SCHEME_NOT_SUPPORTED: The client that uses Web standard APIs supports only "libsql:", "wss:", "ws:", "https:" and "http:" URLs, got "file:". For more information, please read https://github.com/libsql/libsql-client-ts#supported-urls
    at _createClient (.../Library/Caches/deno/npm/registry.npmjs.org/@libsql/client/0.7.0/lib-esm/web.js:19:15)
    at createClient (.../Library/Caches/deno/npm/registry.npmjs.org/@libsql/client/0.7.0/lib-esm/web.js:8:12)
    at run (https://denopkg.com/deco-cx/[email protected]/records/scripts/pullProd.ts:80:21)
    at eventLoopTick (ext:core/01_core.js:175:7) {
  code: "URL_SCHEME_NOT_SUPPORTED",
  rawCode: undefined,
  name: "LibsqlError"
}

Steps to Reproduce (for bugs)

  1. Have a deco site
  2. Install deco records via admin
  3. run in the terminal deno eval --env 'import "apps/records/scripts/pullProd.ts"'

Expected Behavior

Dump db and create sqlite.db file locally

Actual Behavior

Crashes creating the sqlite client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant