Join the Webstudio community

Updated 2 weeks ago

I'm working on self hosting the builder I have everything running and google auth setup

But I get this error when trying to login

Plain Text
FetchError: request to http://localhost:3000/User?select=* failed, reason: socket hang up


when I hit that with curl outside the app I see:

[]

any ideas?

public url if you want it: https://nyphix.net/login?returnTo=/dashboard
O
F
3 comments
not sure, but is it possible that you aren't hitting it with exact same request when using curl and someting is missing?
e.g. http protocol looks suspicious
So, for posterities sake, the issue was I was using remix-serve, I found the express example from remix and used that instead as the server and hosted it with node and it fixed it. Now the only issue I'm having is depsite my env variables looking like this:

NODE_ENV=production POSTGREST_URL=http://localhost:3000 PORT=5178 DEPLOYMENT_URL=https://nyphix.net DEPLOYMENT_ENVIRONMENT=production HOST=0.0.0.0 node server.js

it's setting my callback url to http:// when selecting a project.
Add a reply
Sign up and join the conversation on Discord