Wasp-lang

W

Wasp-lang

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

Join

I need help in debugging resource exhausted (Too many open files)

I can't start my WASP project unless I do a ulimit -n 10000 . To wasp db start. I need to do this in every terminal session I need to run wasp in. I know if it's working and it's stupid it's not stupid, but still I don't feel comfortable doing it, I feel I'm hacking into the solution instead of tackling the problem and solving it the right way. Any idea why I keep getting this error? ...

How differentiate different status codes on client from HTTPerror thrown

I have operations that find a document by id and throws error 404 if not found. On client side , I want to check for status code is 404 and then udpate UI saying no documents present. In the console, the type of the error thrown comes as WASPHttperror, but I could n'tfind this type to reference in client code.

Password Reset for usernameAndPassword

How do we create a password reset page when using the usernameAndPassword option? It should allow a user to change their password

How can I get user current plan in opensaas template

How can I get user current plan in opensaas template ?

Remove Credits

Hi, I deployed the opensaas template on fly and created 3 plans (all of them subscriptions). However, by logging in, the user got 3 credits, how can I change that? He should have no subscriptions by default and once he buys one, it should be displayed there....

Failed to resolve import

[plugin:vite:import-analysis] Failed to resolve import "../../../../src/admin/dashboards/analytics/AnalyticsDashboardPage" from "src/router.tsx". Does the file exist? /home/rootall/apps/minisaas-boilerplate/app/.wasp/out/web-app/src/router.tsx:9:35 5 | import { LoginPage } from "../../../../src/auth/LoginPage"; 6 | import { TooGradedPage } from "../../../../src/toograded/TooGradedPage"; 7 | import AnalyticsDashboardPage from "../../../../src/admin/dashboards/analytics/AnalyticsDashboardPage";...

Update OpenAI to latest version Safe?

Is it safe to update OpenAI from 4.52.1 to 4.70.2. I'm using Wasp 0.14.0. When I try to update I also need to update zod

Migration from v0.14.0 to v0.15 leads Prisma errors

Describe the bug .wasp/out/sdk/wasp/node_modules/.prisma/client/default.d.ts Is not updated to include the defined prisma schema tables. So starting the wasp server leads to getting error: Module '"@prisma/client"' has no exported member To Reproduce Steps to reproduce the behavior:...

How can i avoid that a user can "signup" twice with the same email address in wasp version 0.11.8?

At the moment, it's possible for users to sign up with the same email address and still get this confirmation message on the signup page: You've signed up successfully! Check your email for the confirmation link. In the database, nothing changes if the email address already exists but how can I check upfront as part of the sign up process if the email address already exists? How can I customize the signup validation for wasp version 0.11.8...

router.tsx:7 Uncaught SyntaxError: The requested module '/@fs/home/rootall/apps/minisaas-boilerplate

router.tsx:7 Uncaught SyntaxError: The requested module '/@fs/home/rootall/apps/minisaas-boilerplate/app/src/auth/LoginPage.tsx' does not provide an export named 'default' (at router.tsx:7:8) why? loginpage.tsx:...

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?