[Authentification] NetworkError when singin on a fresh install

Hello , I have an authentification NetworkError when I try to signin on a first use of the app. I wanted to explore the user/admin dashboard to see how it works but I don't have a clue why is generating this error. Also I don't know if there's a username:password for a dummy account I can use. Note: I'm suspecting the connexion with that database is generating this problem but I read in the .env file it's not mandatory to add the postgres url if running wasp start db
kapa.ai
kapa.ai15d ago
Hi @Nissou. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources provided, it seems like you might be encountering a similar issue to what was discussed in the Discord support thread titled "Template Signup Network Error". The issue might be related to your environment variables. In the .env.server and .env.client files, you should have the correct URLs for your server and client. For example, in the Discord thread, a community member had to add the following to their .env.server and .env.client files:
# .env.server
WASP_WEB_CLIENT_URL=<https://3000-nitishymtpl-helm-98clwhfoi7c.ws-us110.gitpod.io>

# .env.client
REACT_APP_SOME_VAR_NAME=foo
REACT_APP_API_URL=<https://3001-nitishymtpl-helm-98clwhfoi7c.ws-us110.gitpod.io>
# .env.server
WASP_WEB_CLIENT_URL=<https://3000-nitishymtpl-helm-98clwhfoi7c.ws-us110.gitpod.io>

# .env.client
REACT_APP_SOME_VAR_NAME=foo
REACT_APP_API_URL=<https://3001-nitishymtpl-helm-98clwhfoi7c.ws-us110.gitpod.io>
Also, ensure that you have copied .env.server.example to .env.server. You can do this via the terminal with cp .env.server.example .env.server. If you're using a database, make sure it's running and accessible. In the Github issue titled "Realworld app returning Network Error", the user was unable to reach their database server at localhost:5432. You might want to check if your database server is running and accessible at the specified location. If you're still encountering issues, it would be helpful to know more details about the error messages you're seeing. This could help in diagnosing the problem. Sources: - Discord support thread: Template Signup Network Error (https://discord.com/channels/686873244791210014/1217758453326680095) - Github Issue (closed): Realworld app returning Network Error (https://github.com/wasp-lang/wasp/issues/460) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Nissou, 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?
Nissou
Nissou15d ago
I resolved the problem :
# .env.server
WASP_WEB_CLIENT_URL=http://my-srv-ip:3000

# .env.client
REACT_APP_SOME_VAR_NAME=foo
REACT_APP_API_URL=http://my-srv-ip:3001
# .env.server
WASP_WEB_CLIENT_URL=http://my-srv-ip:3000

# .env.client
REACT_APP_SOME_VAR_NAME=foo
REACT_APP_API_URL=http://my-srv-ip:3001
Because I'm using a virtual machin on my proxmox host to test 😉
miho
miho14d ago
I’m glad you figured it out 🙏
Want results from more Discord servers?
Add your server
More Posts
Can someone help me in making chat application using waspHey I was trying to make random chat app to learn more about mern, but now i am clueless. Can someonHaving multiple generator in schema.prismaHello, Currently if I add my entities in `main.wasp` then the generated `schema.prisma` has generatDirect to a defined page after successful loginHello I have the standard LoginPage, as given in the ToDo App tutorial (see picture). I now would lRemove email loginIs it possible to only rely on OAuth and disable email login when using OpenSaas? When I comment outHow to use Env variables in main.wasp?I want to set the email authentication `fromField.name` to `process.env.FROM_NAME` and `fromField.can not find "wasp/server/_types" module or declarationany suggestion? this error won't effect dev, but I can't have the right type with action's params arDisable email loginIf I only want Google signup, is there a way to remove the email login? I tried commenting ``` emailDo I have a way to use useLazyQuery ?My app filters some data. I need to be able to refetch whenever the user clicks on "search" with theWhere to see migration files?I have messed up one migration (because I had to delete my local code), and now I don't know where tFile upload size limitI'm trying to implement max file upload size to the s3 bucket. I've handled the front-end but I worrAuthis there a sample bypass to login the auth while in developmentQuick Start not working?I'm following this tutorial: https://wasp-lang.dev/docs/quick-start After opening my terminal and r