Wasp

W

Wasp

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

Join

Context.user is null

{ [ Server ] user: null, [ Server ] entities: { ..... [ Server ] }...

CORS is blocking www

www.dylankappler.com/:1 Access to XMLHttpRequest at 'https://devsite-server.fly.dev/operations/get-version' from origin 'https://www.dylankappler.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. when accessing my site at www i get this cors error....

Fail to compile

@kapa.ai Help! `[ Wasp ] ext-src/cgpa-calculator-2/calculator/CGPACalculator2.tsx(3,10): error TS2724: '"wasp/client/operations"' has no exported member named 'createCGPACalculation2'. Did you mean 'createCGPACalculation'? [ Wasp ] ext-src/cgpa-calculator-2/calculator/CGPACalculator2.tsx(138,17): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'SetStateAction<CalculationResult>'. [ Wasp ] ext-src/cgpa-calculator-2/operations.ts(1,10): error TS2724: '"wasp/server/operations"' has no exported member named 'CreateCGPACalculation2'. Did you mean 'CreateCGPACalculation'?...

multiSchema error: Error validating model "Session": This model is missing an `@@schema` attribute.

Trying to use multiSchema feature in the Prisma file to organize the models. ``` generator client { provider = "prisma-client-js" previewFeatures = ["multiSchema"]...

Machine doesn't start stays at waiting for machine to be reachable

Hi, I'm having an issue when deploying, my server machine is never starting, it just stays at "waiting for machine to be reachable on 0.0.0.0:3001" and then stops after a few tries. In my local the server works, but on fly it never starts. Logs don't say the cause of the issue and I can't ssh either if the machine doesn't start. At some point I thought this was related to missing some env variables, I added them and did a clean deploy but it still doesn't start. My dockerfile is the same as the default but I'm using a library that doesn't support Alpine so I added a line at the end: `# Any user-defined Dockerfile contents will be appended below....
No description

I want to return a 401 status on an action when a certain error occurs

Hi kapa, i want to return a response of 401 when a certain action fails. In my case my action fetches some information from an external API but when this fails with a 401 status i want to also return a 401 status to the client. ```ts const response = await axios.post(tokenUrl, {}, { headers }); if (response.status === 401) {...

Timeout error when deploying railway up

I was wondering if someone has been able to deploy a wasp app using github. My project is larger than 45 mb so "railway up" doesn't work and I haven't been able to find instructions on how to deploy the app differently: https://help.railway.app/questions/timeout-error-when-doing-railway-up-c492c32d

Installing opencascade.js into wasp peoject (opensaas)

Hello friends, i am trying to install opencascade.js (a CAD library), i have tried other implementation, useing three.js and CSG (witch did work), however didnt meet my needs, so i need to know how to install this. But i am getting stuck on configuring the bundler / set-up, they talk about webpack. Would somone be able to walk me though how to install this in a wasp project? Would be greatly appreciated. Here is the documentation....

Not registering the new plan when buying it

Hi im using opensaas template. When buying a new plan, it seems like the account registered doesn't get the new status he should get. How could I fix this ?

Web workers

Is there anything I need to take into account with wasp about creating a web worker?

Deployment issues with migrations

When I first ran the app locally, I ran wasp db migrate-dev and it created a new migration.sql file. When deploying, this new file caused issues and now there are db connectivity issues

[ Server ] Starting npm installwasp-bin: npm: streamingProcess: chdir: invalid argument (Bad file de

suddenly, when i run
wasp start
wasp start
I get this error:
[ Server ] Starting npm installwasp-bin: npm: streamingProcess: chdir: invalid argument (Bad file descriptor)
[ Server ] Starting npm installwasp-bin: npm: streamingProcess: chdir: invalid argument (Bad file descriptor)
...

deleted my docker image with and can't recreate

I deleted my docker image that was running the db. I ran wasp start db and it made a new db, but now when i connect with
wasp start
wasp start
(after running
wasp start db
wasp start db
), I get the following error on the db ``` 2024-10-31 07:13:44.454 UTC [40] ERROR: relation "public.Session" does not exist at character 98 2024-10-31 07:13:44.454 UTC [40] STATEMENT: SELECT "public"."Session"."id", "public"."Session"."expiresAt", "public"."Session"."userId" FROM "public"."Session" WHERE ("public"."Session"."id" = $1 AND 1=1) LIMIT $2 OFFSET $3...

Embeddings SaaS Template

What is [4] embeddings Comes with code for generating vector embeddings and performing vector similarity search. And what king of things it have? Features? Pages? etc... All...

Error deploying after migrating to ^0.15.0

The wasp start works fine and show all fine. Doing wasp deploy fly deploy it fails giving me these errors: `Visit your newly deployed app at https://toograded-server.fly.dev/...

railway tutorial not up to date

Can it be that the tutorial is not uptodate anymore? It says: Go to the server instance's Settings tab, and click Generate Domain. Do the same under the client's Settings....

Mailgun domain

From the docs: - Go to Domains and create a new domain. - Copy the domain and add it to your .env.server file. Is it a specific domain that Mailgun provides to me? Or is it the one that I bought over (e.g. godaddy?)...

[ Server ] GET /auth/me 401 1.305 ms - 43

When I run my app It gives me always this in the client console. [ Server ] GET /auth/me 401 1.305 ms - 43 Why? From where it comes?...

How to customize the wasp SaaS template

How to customize the wasp SasS Template

Welcome mail and verification page bypassing

Was wondering if anyone has experience with sending welcome mail after successful email verification. Also wondering if I can send users somewhere other than the verification page but still have their emails verified through the verification link. Thinking of building out some sort of user onboarding process or something as a project...