richan-fongdasen / turso-laravel

A Turso/LibSQL database driver for Laravel application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Protocol "libsql" not supported

wilhelmpa opened this issue · comments

What happened?

I try to run the migration, but there comes the following error:

cURL error 1: Protocol "libsql" not supported (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for libsql://xxx-yyy.turso.io/v3/pipeline (Connection: turso, SQL: select name from sqlite_master where type = 'table' and name not like 'sqlite_%' order by name)

Do you have any ideas?

Besides that, this Project is so awesome, thank you very much

How to reproduce the bug

run the migration script also with a fresh install of your cms project

Package Version

I dont know

PHP Version

8.3

Laravel Version

11

Which operating systems does with happen with?

No response

Notes

No response

Hi @wilhelmpa, thanks for submitting the issue . I think I have an idea about what's going on here. The given Turso database URL is defined using the libsql:// protocol. The package doesn't currently recognize the libsql protocol. A quick fix would be to replace the libsql protocol with https.

I know this will be confusing for new users, so I will work on making it unnecessary to replace the protocol in the future.

Uh my bad. I just copy pasted from turso instead of reading your docs carefully. It worked! Thank you very much!!!!! So nice