Wasp

W

Wasp

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

Join

Serious issues with auth?

I'm not seeing any email uniquesness checks, even on verified email, both locally and test deployment. I can attack any user and change their (required) username and password, the username is simply updated in the DB. All I have to do is know the email. I'm not seeing any discussion about this. I haven't strayed far at all from wasp's auth setup, only requiring username string for display purposes instead of it just copying from the email string....

add PostgreSQL-specific indexes without Prisma drift?

I'm implementing vector similarity search with pgvector and need to create specialized indexes (HNSW for embeddings, GIN for full-text search) that Prisma doesn't support in schema.prisma. Problem: 1. Create a manual SQL migration with CREATE INDEX ... USING hnsw/GIN 2. The migration applies successfully ✅...

DB Migration issues when syncing Prod and Dev DB

To keep my local dev DB sane I created a shell script to dump my prod (deployed) DB to a local file, drop my local database and restore the dump locally. When I then run wasp clean and try to start the server, it prompts me that the migrations do not match and I need to wipe the Database. After that I rerun my sync script to have some Data which works fine, but the next time I need to run wasp clean, I need to repeat the process. It's not a Shopstopper nor Dealbreaker. Just wanted to point it out and ask how you detect the migration changes? I tried to prevent this by excluding the migrations table from the remote dump and do a local dump first and after dropping the local db and restoring the remote dump I also restore the local migrations table hoping to prevent the issue, which sadly did not work. ...

Wasp is not updating the .env variables.

Even with wasp clean, it doesn't seem to update env file. When I build my project, it connects to nonexistant (but I had it before) backend link from the client. I've set it to localhost now, but it doesn't care. I am using REACT_APP_API_URL in the .env.client . It connects to my old railway production backend....

Cannot find module 'wasp/...' on everything wasp related, on OpenSaaS.

Every wasp library in the project gives typescript error in VSCode which is very distracting. Is there a way to fix it? Tried reloading the TS server, cleaning wasp and building it back again. Running 0.18.0 in Ubuntu WSL....

Tips for using aider?

I'm just now getting into testing out LLM stuff, and I just setup sidekick.nvim + aider using gemini. Are there any tips or suggestions with how to use it well? I've seen stuff around wasp with cursor rules, I didn't know if there was something similar for aider.

Prisma Connection Error (Too many clients)

I was coding some new features in my app, and it suddenly started showing this error. I checked the server to see if I had changed anything there, but I didn’t — the last commits were only on the client side. This is an app I’ve been building since last year, and I already have a client using it. The new features were shipped, and now this error just appeared unexpectedly. Wasp version: 0.16.5...
No description

railway deploy for existing app

I have an existing Opensaas app that is currently hosted on Fly.io, and I want to deploy it to my Railway account. The latest Opensaas version now includes easy Railway deployment via the CLI. What are the steps to deploy it to my Railway account?

Deployment fails from ‘AC

I have been trying to deploy for couple days. Single command fails because of dockerfile errors - dockerfile is automatically generated. I am doing this on MAC. Even if I fix the dockerfile - it crashes....

error TS2554: Expected 2 arguments, but got 3.

After migrating from 0.16.0 to 0.17.0, and I run "wasp start", it loads fine, but crashes with the errors src/routes/apis/index.ts(436,59): error TS2554: Expected 2 arguments, but got 3. [ Server ] src/routes/apis/index.ts(454,58): error TS2554: Expected 2 arguments, but got 3. ...

Best approach for creating a file on server side and allowing the client to download it

As part of my wasp app, I want the user to be able to request a csv file with certain parameters. That's then sent to the server side, which I then process and create a csv and send back to the user as a download. What's the best way of going about that in Wasp?

Adding GA events tracking

Hi, Is there a way to use the existing Google Analytics integration done through the Cookie Consent function to track specific event ? How can I do that ?...

Deploying a Wasp app to a VPS

Hey! I'm trying to deploy the Wasp backend app on Hetzner using Caddy, following these guidelines https://gist.github.com/infomiho/80f3f50346566e39db56c5e57fefa1fe. However, my reverse proxy doesn’t seem to be working. I checked with netstat inside the Docker container, and it looks like no ports are being exposed. Do you have any idea what might be going wrong?...

fly deploy error

i destroyed my fly db app and created another one and attached the db app to my server app. when i run wasp deploy fly deploy i get an error saying that i dont have a database url on the server app but the secret is there. whats causing this? } ] 🚀 Your server app does not have a DATABASE_URL secret set. Perhaps you need to create or attach your database? ...

Automatic Restart by AI Agent and zombie processes

I am a beginner. I use Linux Mint. I understand that the Wasp server restarts with every change. I also know about the wasp clean command, but I’ve been running into a problem: when AI agents reboot the server, it seems to leave zombie processes alive, and the server never properly reboots—it hangs with an error. What is the fix? It requires logging out and logging back in. In short, this removes all zombie processes. However, this is not a practical solution. I have two dangerous commands that can stop the Wasp servers because Ctrl-C is disabled and won't stop the server manually:...

Remove/destroy Wasp Fly.io deployment

I created a simple Wasp app and tested deploying it to Fly.io and it all worked great. As it was just a silly experiment, I'd like to now take down (decommission) the deployment. Is this something I can do through the Wasp CLI, or do I need to use the fly cli directly to do this? Any guidance would be greatly appreciated. Thanks!

CSP Header Issue with Railway Deployment - Need Help with blob: URLs

Hey Wasp team! I'm deploying to Railway using wasp deploy railway and running into a Content-Security-Policy issue. Problem: • When users drag/drop images into my canvas app, browser creates blob: URLs...

api error

im getting a cors error in the browser console. the api is for fetching blog posts. Access to fetch at 'http://localhost:3001/posts' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error service-worker.js:22 Uncaught (in promise) TypeError: Failed to fetch at service-worker.js:22:32Understand this error Access to fetch at 'http://localhost:3001/posts' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error service-worker.js:22 Uncaught (in promise) TypeError: Failed to fetch...

Where is the latest and greatest GCP Cloud Run steps?

Hi all. I see a bunch of guides on how to deploy to various providers like Heroku, Flyio, etc. However, I want to use GCP Cloud run, and I want to deploy to it using GitHub Actions. Where is the latest and greatest documetnation for deploying a wasp app to Cloud Run?...

Is wasp auth really a better alternative when compared with supabase or clerk auth ?

I am finally setting up auth and everyone is either using clerk or supabase for auth. Is there an advantage to using those platforms for auth or wasp auth is just good enough secure enough and stable enough ?
Next