Wasp

W

Wasp

Join the community to ask questions about Wasp and get answers from other members.

Join

CORS middleware wasp generate bug

Was having a CORS issue so I did what one of the guides said and added. `// main.wasp server: { setupFn: import setup from "@src/serverSetup",...

cant access server after deploying

@kapa.ai my app cant access the server after deploying to fly. the local environemnt works though

re-deploy updates

@kapa.ai what is the command to redploy after changes to fy

Hyper-V not available for Windows 11 Home

I am attempting to set up WSL to proceed with Wasp but after a bit of research, it seems like Hyper-V is not available for Windows 11 Home. I get this error when I try to run the first command for installing WSL. Is there another way to run WSL and use Wasp for Windows? Any help is much appreciated!
No description

Custom endpoint missing context user

I've created a custom API endpoint that needs to be authenticated. As per the documentation, I set the auth field to true, but when a request is received, there's no Authorization header and the context.user object is null even though the user is logged in. I'm not sure what I'm missing? Do I need to set the header manually? For context, I have an API namespace applied to prevent the CORS errors I was experiencing initially. ```ts...

Prisma transactions

How can I use transactions in wasp?

How do you clear scheduled jobs?

I'd like to cancel a PgBoss job because I changed the logic, is there a way to clear it from the database?

Setting server secret env values and Stripe Webhook upon Fly.io deployment?

Hi, I'm working on launching my Wasp project! While I'm very excited, I'm also very confused. I'm using the 'wasp deploy fly' command with fly.io. The docs only very briefly mention the server secrets. It looks like I have to manually set each and every one? That's a bit troublesome as I'm using like 10 different values. Is this correct? You just have to manually set all those via commands? But more importantly, how does the Stripe Webhook get set? Don't we have to run that webhook via a terminal somewhere, get the generated value, then set it? How does this work with fly.io? Any guidance would be more than greatly appreciated!...

Issue with wasp start

Hi, I succesfully installed wasp on my pc using wsl for windows. I also successfully created a wasp project, but when I run wasp start, I get symlink errors. The first ss is error when I run wasp start for a new project, the second is error when i run wasp db migrate dev for an existing wasp project (usemage). I understand that this is an error wth permissions, but idk what to do, Please help......
No description

In development mode can I change the hostname of the server to something other than "localhost?"

I'd like to load my development site from my phone and other machines on my local network. I'm able to pull up the front-end on my phone, but the app doesn't work, because it sends all the server requests to "localhost:3000." I tried setting WASP_SERVER_URL but it didn't work.

waspc_datadir

Is there a reason why wasp's installer packages these TS apps in it's data directory? the documentation says this:
Wasp bundles some TypeScript packages into the installation artifact (eg: deployment scripts), which end up in the installed version's waspc_datadir. To do so in CI, it runs ./tools/install_packages_to_data_dir.sh.
But looking at references to the waspc_datadir, it's not used...

Stripe Problem! Everything works on dev, but not on prod

Classic, everything works on my end but not on prod. I highly suggest everyone to make a 100% coupon before your customers complain! When running on dev with the stripe webhook everything is fine and dandy. When running on prod with stripe and fly, I get 200s and delivered. ...

I get a blank page after running "cd <my-project-name>wasp start" (already migrated the db).

In the source code it says javascript must be enabled (see image) but it is enabled in my browser. I also get the following error in the console: Uncaught SyntaxError: The requested module 'http://localhost:3000/@fs/Users/phplaravel/Desktop/Flashcardsapp-z23my/.wasp/out/sdk/wasp/dist/client/router/index.js' doesn't provide an export named: 'useParams'. I hope someone can help me. ThaNKS...
No description

Deploying Manually

I followed this guide: https://gist.github.com/infomiho/80f3f50346566e39db56c5e57fefa1fe Unfortunately, when I try to signup, it returns 500. Here is the docker log for it: POST /auth/email/signup 500 53.781 ms - 148 PrismaClientKnownRequestError: Invalid prisma.authIdentity.findUnique() invocation:...

Hosting a Wasp project?

Hi, I recently have created a webapp using Wasp. But the wasp docs are a little confusing with how hosting works. In my experience, when I've completed websites in the past, I just throw everything (frontend, backend, db) into docker containers and run it all off a cheap $4/month vps, or my own home server. I see most of the options require 2 different services, 1 for the frontend and a complete different service for the frontend and backend? Why is that? What's stopping us from just running eve...

email send error

@kapa.ai followed the send grid instrcutions, got this Server!] Failed to send email ResponseError: Forbidden [ Server!] at /home/brad/haystack30/app/node_modules/@sendgrid/client/src/classes/client.js:146:29 [ Server!] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { [ Server!] code: 403, [ Server!] response: {...

remove existing metered stripe plan

@kapa.ai how do i remove the credits plan from the website?

Would wasp be efficient enough for a bill payment web app?

Would Wasp be efficient enough for building a full-fledged bill payment web app? Can it handle complexities like real-time updates using WebSockets, payment integrations, and scaling with a DigitalOcean database?

Can I integrate wasp into existing React App?

Hi, so I’m building an Ai Tool. I’ve created most of the frontend and was just about starting on NodeJS when I came across wasp. Can I integrate wasp into my existing frontend?