2 Replies
Hi @mokthar. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I see you're encountering a "Network Error" when trying to create a new account in your Wasp application. This is a common issue that can happen for several reasons:
Common Causes
1. CORS Issues: If you're running your app in an environment like Gitpod, you might need to configure CORS properly by setting environment variables.
2. Server Connection: Your client might not be able to reach the server, which could happen if:
- The server isn't running
- The ports aren't properly configured
- There's a network connectivity issue
3. Database Connection: The server might not be able to connect to the database.
Solutions to Try
1. Check Environment Variables:
- For environments like Gitpod, make sure you've set up
Discord support thread shows this fixed similar issues for other users. 2. Check Server Logs: - Look at your terminal where the server is running for any error messages 3. Database Connection: - Make sure your database is running - If using PostgreSQL, ensure it's properly started and accessible - Run
.env.server
with WASP_WEB_CLIENT_URL
pointing to your client URL
- In .env.client
, set REACT_APP_API_URL
to your server URL
Discord support thread shows this fixed similar issues for other users. 2. Check Server Logs: - Look at your terminal where the server is running for any error messages 3. Database Connection: - Make sure your database is running - If using PostgreSQL, ensure it's properly started and accessible - Run
wasp db migrate-dev
to ensure your database schema is up to date
4. Browser Console:
- Check your browser's developer console for more specific error messages that might help diagnose the issue
The good news is that Wasp has improved error handling for signup issues. Previously, email address conflicts would just show a generic "error 500", but now there should be more helpful error messages as discussed in this GitHub issue.
If you could share more details about your specific setup (local development, Gitpod, etc.) and any error messages you see in the console, I could provide more targeted help.
GitHub: kapa.ai - Wasp AI Assistant
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @mokthar, 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?Is this in development or production? Have you checked the server logs or the browser inspector for any client-side errors that might provide more explanation?