-
Notifications
You must be signed in to change notification settings - Fork 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
Vercel Turso integration returning 401 for @libsql/client
#280
Comments
I’ve created a reproduction application which is simply the Remix Vercel template with a Turso Drizzle integration following the steps from the Drizzle documentation This is giving the same error as mentioned before. What is going on here? https://github.com/petervmeijgaard/remix-drizzle-vercel I figured out that this is only involving the serverless environment. The Turso connection is working fine on the edge environment: |
I've also faced the same issue, and solved the problem by changing the I think it relates to vercel's infrastructure of not handling specific schemes such as |
I tried the Internally, it seems using |
Description
Hi!
When accessing data from my site hosted on Vercel, I'm getting a 401 HTTP status code being thrown from the
@libsql/client
and I have no clue why. When I connect to the database locally, I simply cannot reproduce the issue.I tried recreating the database, recreating the group, and tweaking the Drizzle configuration, but none of it seemed to work. I have no idea what's throwing this exception and why the request from Vercel isn't getting authorized properly.
If more information is necessary, I'd be more than happy to provide this!
Thanks in advance!
More details
Stacktrace
package.json
app/db/index.ts
app/routes/temp._index/route.tsx
drizzle.config.ts
The text was updated successfully, but these errors were encountered: