William Jin
WWasp
•Created by William Jin on 12/18/2024 in #🙋questions
Getting CORS issue when using Wasp CLI to deploy
@kapa.ai
postgres=# SELECT * FROM _prisma_migrations ORDER BY started_at DESC LIMIT 5;
ERROR: relation "_prisma_migrations" does not exist
43 replies
WWasp
•Created by William Jin on 12/18/2024 in #🙋questions
Getting CORS issue when using Wasp CLI to deploy
@kapa.ai In fact I didn't change my db schema recently. How do I check what cause the db migration filed and how should I fix it?
I also opened db studio to connect to my production database and didn't find anything wrong.
43 replies
WWasp
•Created by William Jin on 12/18/2024 in #🙋questions
Getting CORS issue when using Wasp CLI to deploy
@kapa.ai still having the issue. how to fix the migration issues in my production database?
43 replies
WWasp
•Created by William Jin on 12/18/2024 in #🙋questions
Getting CORS issue when using Wasp CLI to deploy
@kapa.ai I encountered the issue again after a few more deployments… I'm pretty sure I didn't mess up server configs (I changed my client URL to admin.skyblaze.app yesterday and it worked, so the WASP_WEB_CLIENT_URL should be fine.)
However when I deploy again today, I got
43 replies
WWasp
•Created by William Jin on 12/19/2024 in #🙋questions
Manipulating production database with fly.io and wasp db studio
@kapa.ai Thanks kapa! Seems I didn't use the correct
OPERATOR_PASSWORD
. I put in the correct password and killed my local wasp db (which ran on port 5432) and the wasp db studio
worked successfully.16 replies
WWasp
•Created by William Jin on 12/19/2024 in #🙋questions
Manipulating production database with fly.io and wasp db studio
@kapa.ai Tried with your URL,
DATABASE_URL=postgres://postgres:<credential>@localhost:5432/skyblaze_server?sslmode=disable
but still got the same error:
16 replies
WWasp
•Created by William Jin on 12/18/2024 in #🙋questions
Getting CORS issue when using Wasp CLI to deploy
Thanks, I tried again and added PORT=80 and the issue seems to be fixed 🙂
43 replies
WWasp
•Created by William Jin on 12/18/2024 in #🙋questions
Getting CORS issue when using Wasp CLI to deploy
@kapa.ai Client still show CORS error even after I removed all the middleware codes. Maybe not CORS problem?
When I check server logs on Fly.io, it says “
[PC01] instance refused connection. is your app listening on 0.0.0.0:80? make sure it is not only listening on 127.0.0.1 (hint: look at your startup logs, servers often print the address they are listening on)”
43 replies
WWasp
•Created by William Jin on 12/18/2024 in #🙋questions
Getting CORS issue when using Wasp CLI to deploy
@kapa.ai Changed my
serverSetup.ts
to your code:
But didn't work. Still got CORS error.43 replies