Skip to content

Remote Database Connection Not Working #42

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

Open
Aditya-Kumar-Code opened this issue Mar 12, 2024 · 1 comment
Open

Remote Database Connection Not Working #42

Aditya-Kumar-Code opened this issue Mar 12, 2024 · 1 comment

Comments

@Aditya-Kumar-Code
Copy link

Aditya-Kumar-Code commented Mar 12, 2024

Whenever i Run this code Which is in the official documentation of libsql-experimental .


import libsql_experimental as libsql

url = os.getenv("LIBSQL_URL")
auth_token = os.getenv("LIBSQL_AUTH_TOKEN")

con = libsql.connect(database=url, auth_token=auth_token)
cur = con.cursor()
cur.execute("CREATE TABLE users (id INTEGER, email TEXT);")


i get this error . I am using apple silicon chip.


 thread '<unnamed>' panicked at /Users/administrator/.cargo/git/checkouts/libsql-311658d335deb3b1/9de3ccc/libsql/src/hrana/hyper.rs:88:9:
there is no reactor running, must be called from the context of a Tokio 1.x runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
pyo3_runtime.PanicException: there is no reactor running, must be called from the context of a Tokio 1.x runtime. 


@notrab
Copy link
Member

notrab commented Nov 1, 2024

Do you still get this error? I am unable to replicate.

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

No branches or pull requests

2 participants