Wasp

W

Wasp

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

Join

User is getting "Email verification failed, invalid token" unlike 9,000 before him

User is e-mailing me with screenshot from his attempt to log in. Dialog "Email verification". Toast message "Email verification failed, invalid token" and this is 100% coming from the "VerifyEmailForm" component in wasp-lang. I can't find any reason on my end why the user should be getting this. User is on a @gmail.com address Wasp version 0.14.0...

How the hell do I use a value from .env.client?

Hi, I am trying to use a basic env var I've outlined in .env.client. Exactly as the documentation outlines (https://wasp.sh/docs/project/env-vars#client-env-vars): ```import { env } from 'wasp/client'...

Fly.io: is your app listening on 0.0.0.0:3001? make sure it is not only listen on 127.0.0.1

[PC01] instance refused connection. is your app listening on 0.0.0.0:3001? 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) 2025-05-19T20:39:41.858 app[d890159f67e398] mia [info] 2025/05/19 20:39:41 INFO SSH listening listen_address=[fdaa:10:3e43:a7b:2c6:f832:f8a8:2]:22 2025-05-19T20:39:44.772 app[d891257a613138] mia [info] > server@0.0.0 start-production 2025-05-19T20:39:44.772 app[d891257a613138] mia [info] > npm run db-migrate-prod && NODE_ENV=production npm run start [PR04] could not find a good candidate within 20 attempts at load balancing...

CORS Issues

Access to XMLHttpRequest at 'https://api.myapp.com/auth/exchange-code' from origin 'https://app.myapp.com' 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. api.myapp.com/auth/exchange-code:1 Failed to load resource: net::ERR_FAILED ...

Railway deployment crashed

`rootall@Nerox-LpTp:~/app/.wasp/build$ railway up
Select a service server
Indexed Compressed [====================] 100% Uploaded...

Stripe and affiliate/referral program

Have you ever added an affiliate/referral/discount-code program to your SaaS? I’m thinking of adding one to mine but have no idea where to start — curious how others approached it (tools, what worked, what didn’t, etc.)....

❓ PostgreSQL Insert Appears Stuck — No Error, Just Hanging / Deadlocking

Hi all, I'm dealing with a persistent issue when trying to insert rows into my new PostgreSQL table (KeywordInsight). My insert statements don’t fail or throw any errors — they simply hang indefinitely. This behavior persists even for single-row inserts. It works on dev side and I deployed and the table is also visible on prod side but empty. ✅ Setup...

How do I create a sitemap for my Wasp website?

Apologies if this is a basic question and not strictly Wasp-specific. I just want to make sure I'm following the right approach. I'm looking to generate a sitemap for my website. Ideally, I want a new page to be added to a sitemap as soon as I add a new route to main.wasp file. Could you please suggest the best way to create a sitemap that includes all pages automatically?...

Arguments in fetchCustomerPortalUrl

I'm implementing subscriptions in my wasp app and need to implement the ability to manage the users subscription via stripe Looking at the open saas code, I can see the follow function being called to get the url:
fetchCustomerPortalUrl: async (args: FetchCustomerPortalUrlArgs) =>
requireNodeEnvVar('STRIPE_CUSTOMER_PORTAL_URL')
fetchCustomerPortalUrl: async (args: FetchCustomerPortalUrlArgs) =>
requireNodeEnvVar('STRIPE_CUSTOMER_PORTAL_URL')
...

Wasp Installation error: export PATH $PATH into file - I can't get it to work.

Hi folks, I have pasted the line from the terminal into each folder individually, at the starts and ends of the files, one by one and nothing is working. I have also created new files that weren't there and that didn't work either. I had to create /.bash_profile, /.zshrc and /.bash_login and try it that way but unfortunately I am still stuck. I am on Linux Debian on ChromeOS. with nvm and Node.js all installed correctly and working. I have browsed StackOverflow etc. for hours trying all sorts of solutions already as well....

Wasp start

Hi when running wasp start im getting an error [ Client!] node:internal/modules/package_json_reader:268 [ Client!] throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null); [ Client!] ^ [ Client!]...

Microsoft SSO Support

Hello. I'm looking for a way to integrate Microsoft SSO Login for a Wasp project. Unfortunately, it's not one of the already-supported ones. Any ideas on how could I even start integrating? Thank you.

Creating a record during user sign up

Is there a way to create an additional database record when user signs up? I know about additionalFields, but it seems to only work with simple fields. What I'm looking for is a little bit different: I am trying to add simple multitenancy to the application, so I want to add "Company Name" field to the sign up form, then create a Tenant record in the database and link user to Tenant. It would be possible to record company name on user object, then create Tenant after first log in, but it seems hacky... Is there some hook I can call pre/after User creation?...

Roke

I'm using roke template. When I run wasp db start I get an error wasp db start ❌ --- [Error] Wasp command failed: ----------------------------------------------- ...

Deploying with PM2 + Docker

Do you recommend using pm2 in combination with Docker when deploying the backend in a VPS like Hetzner? Do you have any suggestions on how to configure this?

Stripe connect for B2C

My Saas involves customers paying service providers, and it (Saas) takes a % fee off of it, and the business gets the funds after the service is completed. Stripe Connect seems to be what will do the job. Does OpenSaas have it implemented somewhat? Or do I do it from scratch as per the Stripe docs/tutorials?

What is th e best way to transform landing page

What is the best way to transform the landigpage to a appealing one? Like change the header, change the mayout of the header and make some dropdown category. Anyone got some examples...

CORS issue on content-type: text/event-stream OpenAI

I am using event stream to create an endpoint to stream open ai responses as chunks. I created a POST endpoint (/explainer) to consume it but i am getting cors error when i try to hit from other localhost port. Does anyone know why? FYI: I had another POST endpoint that content-type is json doesn't have CORS issue though only this endpoint has cors issue. Does anyone know why? ...
No description

Mailgun send email issue

Hi all, I created a simple backend function for sending emails as so: import { Email, emailSender } from 'wasp/server/email'; ...