LibsqlError: URL_INVALID: The URL is not in a valid format
Out of nowhere I started getting this error, whats even weiirder is that it only occurs on one route.
/posts/create
9 Replies
since it only happens on this route, I really cant debug it
because i import the db lib file in the same way in all routes
and yet only this one errors
This error is nonsense, why should it be thrown only on that route?
Should i provide the repo?
GitHub
GitHub - Aryxst/onlyprogrammers
Contribute to Aryxst/onlyprogrammers development by creating an account on GitHub.
the issue happens on this route
https://github.com/Aryxst/onlyprogrammers/tree/master/src/app/(logged)/posts/_new
GitHub
onlyprogrammers/src/app/(logged)/posts/_new at master · Aryxst/only...
Contribute to Aryxst/onlyprogrammers development by creating an account on GitHub.
Hey @Aryxst I see that in other routes you use
use server
but it is missing in posts/create route, so this might cause the issue. Also, try to console.log
your env variable in this route💀
If thats the issue i will cry
I will try it out tomorrow thank you!
nope didnt work
could you
console.log
your db url in your route please?undefined
so there is a problem with env variables in your route, not drizzle related
why does it work on all other routes