network error when I try to sign in or add a task when running locally on linux
Hi,
thanks for the awesome product!
when i run locally, i didn't use the built in command to start the database from wasp becuase the docker on my linux is broken and i'm using podman
so i started a postgres server and am running it locally:
I added this to the env.server file: DATABASE_URL=postgresql://user:password@localhost:5433/OpenSaaS
and I ran wasp db migrate-dev:
5 Replies
Hi @John Kiran. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hello,
It's great to hear that you're enjoying Wasp!
The issue you're experiencing might be due to a network error or a problem with the database connection. Here are a few things you can check:
1. Ensure that your PostgreSQL server is running and accessible at the specified URL (localhost:5433 in your case).
2. Make sure that the database name, username, and password in your
DATABASE_URL
are correct.
3. If you're getting a "Network Error" when trying to sign in or add a task, it might be due to the server not running or not being accessible from the client. Make sure that your server is running and that the client can reach it.
4. Check if there are any error messages in the console when you start the server or when you try to sign in/add a task. These might give you more information about what's going wrong.
5. If you're using Docker or another containerization tool, make sure it's set up correctly. There have been instances where users faced issues due to improper Docker permissions or setup. You can refer to these threads for more information: Docker and DB issue (https://discord.com/channels/686873244791210014/1193138068195119104) and Realworld app returning Network Error (https://github.com/wasp-lang/wasp/issues/460).
If you're still facing issues, please provide more details about the error messages you're seeing and we'll be happy to help further!
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @John Kiran, 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?I also commented out all the API keys in the env.server file
@John Kiran yeah this is looking good!
Why did you comment out all the API keys in the .env.server file? I believe some of them you will need set for stuff to work.
Can you share more details on the network error?
What happens if you just go to localhost:3001 in your browser, do you see "hello world"?
Wasp happens if you run
wasp db studio
, does Prisma Studio open for you?