Join the Webstudio community

Updated last month

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

At a glance

The community member is experiencing an error when trying to log in, with the error message "FetchError: request to http://localhost:3000/User?select=* failed, reason: socket hang up". When the community member hits the same URL with curl outside the app, they see an empty response. The community member has provided a public URL for the login page.

In the comments, another community member suggests that the issue may be due to the community member not hitting the same request with curl as they are in the app, and that the HTTP protocol in the URL looks suspicious.

The community member has found a solution to the issue, which was that they were using remix-serve and switched to using the Express example from Remix, hosting it with Node.js, which fixed the issue. However, the community member is now facing a new issue where their callback URL is being set to http:// when selecting a project, despite their environment variables indicating a production environment.

Useful resources
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