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

Unable to run >= 0.6.1 on Edge / v8 runtimes #228

Open
rawkode opened this issue Jun 19, 2024 · 4 comments
Open

Unable to run >= 0.6.1 on Edge / v8 runtimes #228

rawkode opened this issue Jun 19, 2024 · 4 comments
Assignees

Comments

@rawkode
Copy link

rawkode commented Jun 19, 2024

Cannot read properties of null (reading 'split')
  TypeError: Cannot read properties of null (reading 'split')
    at globalThis.fetch (index.js:8457:59)
    at async getIsSchemaDatabase (index.js:3926:18)
    at async HttpClient2.getIsSchemaDatabase (index.js:4248:32)
TypeError

I've narrowed this down to a change between 0.6.0 and 0.6.1.

My code runs fine on 0.6.0, but fails on 0.6.1 and 0.6.2.

v0.6.0...v0.6.1

I'm not using libsql-client directly, but instead through drizzle.

My code is simply:

const client = createClient({
	url: process.env.TURSO_URL as string,
	authToken: process.env.TURSO_TOKEN as string,
});

const db = drizzle(client, { schema });

const videos = await db.query.youtubeVideoTable.findMany();
@haaawk
Copy link
Contributor

haaawk commented Jun 24, 2024

Please try 0.6.2 @rawkode. I believe @giovannibenussi has already fixed the problem 3 weeks ago. Could you please verify @giovannibenussi and close the issue if it's already fixed?

@rawkode
Copy link
Author

rawkode commented Jun 24, 2024

I tried that version first, and then identified the break was introduced in 0.6.1

@haaawk
Copy link
Contributor

haaawk commented Jun 24, 2024

Yes. The change was done in 6.1 -> @giovannibenussi could you please have a look on this?

@giovannibenussi
Copy link
Contributor

I don't see any split call in our code. Anyways, today we released @libsql/client 0.7.0, could you please try that one @rawkode?

Also, could you tell me more about your stack please? Thanks in advance!

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

3 participants