W
Wasp-lang6mo ago
Bino

Sign up network error

When signing up a new user while running it local, I get an error that states "network error". I'm not sure if this has do do with using WSL and it not connecting to the Postgresql db, but I welcome any feedback!
2 Replies
kapa.ai
kapa.ai6mo ago
Hi @Bino. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- The "Network Error" you're encountering during the signup process could be due to several reasons. Here are a few things you can check: 1. Server Errors: Check your terminal for any server errors. If there are any, they might give you a clue about what's going wrong. 2. Wasp Version: Ensure you're using the correct version of Wasp. You can check this by running wasp version in your terminal. 3. Port Usage: Make sure nothing else is running on port 3001, which is the default port Wasp uses. 4. Environment Variables: Ensure you have correctly set up your environment variables. In your .env.server file, you should have the WASP_WEB_CLIENT_URL variable set to match your client URL. In your .env.client file, you should have the REACT_APP_API_URL set to your server URL. 5. Database Connection: Make sure your database server is running and accessible. If you're using PostgreSQL, the error message "Error: P1001: Can't reach database server at localhost:5432" indicates that the server isn't reachable. Ensure that your database server is running at the specified location. If you're running the application in a specific environment like Gitpod or WSL, there might be additional considerations. For instance, in Gitpod, you need to open the 3001 port and adjust your environment variables accordingly. If you're using WSL, there might be some connectivity issues with the port 3001. If you're still having trouble, it would be helpful to share more details about the error messages you're seeing, your setup, and the steps you've taken so far. Sources: - Discord support thread: Template Signup Network Error > Answers Part 1 (https://discord.com/channels/686873244791210014/1217758453326680095) - Discord support thread: Template Signup Network Error > Answers Part 2 (https://discord.com/channels/686873244791210014/1217758453326680095) - Github Issue (closed): Realworld app returning Network Error > Original post (https://github.com/wasp-lang/wasp/issues/460) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Bino, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
martinsos
martinsos5mo ago
@Bino if you are not connected to the DB than that would certainly be an issue! But it should all work via WSL, if you set it up correctly. Can you tell me more about your setup? Have you seen our Wasp + WSL guide? https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl
Want results from more Discord servers?
Add your server