mgp25
WWasp
•Created by mgp25 on 2/11/2025 in #🙋questions
Missing migrations
- Wasp version: 0.13.x
I have an instance were it seems it is missing the migrations files, so when running in prod,
wasp db migrate-dev
we face the following issue:
I have already tried wasp clean
and running wasp db migrate-dev
, but the same problems remains. I have also tried removing the migration from:
Same problem is happening. And yes, keeping data is a must. Any idea how to solve this?
Thank you!11 replies
WWasp
•Created by mgp25 on 2/9/2025 in #🙋questions
Configure timeout/exceptions for actions
Wasp version: 0.13.x
So I have this situation where an action takes so much time that the connection closes because what I believe a
timeout
, and that is completely fine for me, however I would be able to properly control those exceptions when calling an action fails for whatever reason. Is there any way to do this? Right now I am getting the message Network Error
.
While this might work:
It is not a proper solution, since there are many different causes of a Network Error
.
Thank you7 replies
WWasp
•Created by mgp25 on 2/9/2025 in #🙋questions
auth/me delivering too much info to client
Wasp version: 0.13.x
I am seeing the requests
/auth/me
and it returns too much info to client. I haven't seen anywhere to limit the info provided to client or at least in a more clean way.
Thank you6 replies
WWasp
•Created by mgp25 on 2/4/2025 in #🙋questions
CORS issue - wasp 0.13
Basically we are getting a lot of CORS issues, such as:
The following is in
main.wasp
:
And serverSetup.ts
content is:
Pretty much as the guides and other examples shows. Any idea what could be happening?
Best regards7 replies
WWasp
•Created by mgp25 on 11/28/2024 in #🙋questions
CORS Issue
Wasp version: 0.13.2
Backend: https://api.mydomain.com
I have read other issues regarding CORS and I have deployed everything as the documentation recommends:
I have a
serverSetup.ts
file which has the following:
As far as I know config.frontendUrl
should be already https://mydomain.com
but I have added since I am not able to get it working.
In main.wasp
I have added the following:
But I am still getting on client:
NGINX config:
Any idea what I am missing?12 replies
WWasp
•Created by mgp25 on 11/21/2024 in #🙋questions
Question about shared constants
We have the following code in shared constants:
When testing locally, I am seeing the file constants is fetched as it is, being able to see test url as well. Is this the expected behaviour? Is there any better way to be able to set these while keeping the test url hidden during the deploy?
21 replies
WWasp
•Created by mgp25 on 6/4/2024 in #🙋questions
Can't find variable: process
I am lately getting
ReferenceError: Can't find variable: process
which is caused by /server/config.ts
and points to:
As far as I know, this should be only run in the server and not the client and therefore causing the error. I have not changed anything within the Wasp Project. No matter what I do, once I run wasp start
the project only shows a blank page with that error in the web console.
Any idea what could happen?
OS: MacOS
Node version: 18.20.3
Wasp version: 0.13.24 replies