Wasp-lang

W

Wasp-lang

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

Join

Jobs workers to consume from a queue

I want to set up a jobs worker - or multiple workers - to fetch updated information from the OpenAI API when certain events occurr. The pattern I'd like to use is an event queue, rather than invoking the jobs worker directly from the TS code. Is this something possible with Wasp 0.15.0 or do I need to either to a cron job or stick with the exlicit trigger?...

how does opensaas handle user data? According to the law!

I want to know how the opensaas template handles user data? Is it according to any law or guidline? I mean specifically the user entity. Myself i made a different table with extra user information and encoded it i think 264bits....

backend

What is the best way to make a backend for my saas?

OpenSaaS to Wasp 0.15.X update

Hey guys
does anyone know when the Open-SaaS template is planned to be updated to Wasp 0.15.X? Currently, after starting a new project with this template, I received the following message: bash ~ / wasp db start ...

How could i run a query funciton on button click

I have the following code^. right now the getFilteredProducts query is ran everytime the page relaods or something happens. I only want it to be ran once when the button is clicked.
``` const [formValues, setFormValues] = useState({ minimaleOmzet: '',...

Could I execute an action or multiple once per day on the server side?

Could I execute an action or multiple once per day on the server side for each user. It loads data from an api for that specific user, i want to know if I can make it such that this is done every day for each user.

Changing auth social buttons style

Hey there! Is there a way to style the social buttons in the Auth UI?

wasp studio launch ?

When will wasp studio be released? I'm really looking forward to it. I only know css and html

Load Custom fonts from `src/client/fonts/HossRound`

I added a custom font to the path: app/src/client/fonts/HossRound/Hoss-Round-Bold.otf and setup my Tailwindconfig and css to load that font. Whenever I load the font, vite gives me a 403 error: The request url "/app/src/client/fonts/HossRound/Hoss-Round-Bold.otf" is outside of Vite serving allow list. ...

resource exhausted (Too many open files)

This is not the first time that this happens, for some still unknown reason, when doing any file change, instead of recompiling as it should, my wasp start stops and throw a resource exhausted (Too many open files) error. I tried wasp clean but didn't work. My project is totally unusable, any change I do breaks wasp start It's a haskell error, but I'm not sure why it's happening....

Stripe payment refund

First of all, thank you to this fantastic community for all the hard work. I have a question regarding the payment process using Stripe. I see that we can allow users to subscribe to a plan, but what happens if a user wants to request a refund? How can that be handled?

Job Hanging/Not Working when processing a large loop

I'm running a job on my database that current involves iterating over 800 elements and making an api call on each one, but it never gets past the first iteration, and nothing logs out. Is there anything it looks like I'm doing wrong? I've cut out some parts of the code to save on message length restrictions (mainly irrelevant variables) ```export const updatePlatformStats = async (_args, context) => { const unverifiedUsers = await context.entities.UnverifiedUser.findMany({ where: {...

Page & Route specific metadata

Hey guys, currently the <meta /> tags are defined in the main.wasp file. Is there a way to define these metadata (eg. title and description) separately for each route dynamically? Thanks!

pinecone

Hey Guys currently trying to get the embeddings sample to run but i keep getting error connections with pinecone. I followed https://github.com/wasp-lang/starters/pull/11/files and changed the files needed but still get : [ Wasp ] ext-src/embeddings/generateEmbeddings.ts(192,7): error TS2353: Object literal may only specify known properties, and 'spec' does not exist in type 'CreateIndexOptions'. [ Wasp ] ext-src/embeddings/utils.ts(6,23): error TS2345: Argument of type '{ apiKey: string; }' is not assignable to parameter of type 'PineconeConfiguration'. [ Wasp ] Property 'environment' is missing in type '{ apiKey: string; }' but required in type 'PineconeConfiguration'. any solutions for this?...

Added shadcn, and now app won't start

[ Wasp ] ext-src/components/foldable-list.tsx(3,24): error TS2307: Cannot find module '@/components/ui/button' or its corresponding type declarations. [ Wasp ] ext-src/components/foldable-list.tsx(4,26): error TS2307: Cannot find module '@/components/ui/checkbox' or its corresponding type declarations. [ Wasp ] ext-src/components/foldable-list.tsx(5,26): error TS2307: Cannot find module '@/components/ui/progress' or its corresponding type declarations. [ Wasp ] ext-src/components/foldable-list.tsx(18,7): error TS2395: Individual declarations in merged declaration 'FoldableList' must be all exported or all local. [ Wasp ] ext-src/components/foldable-list.tsx(97,17): error TS2395: Individual declarations in merged declaration 'FoldableList' must be all exported or all local....

Generic type can not be seen while using wasp/client/operations

I have created a function that in db/operation.ts and i am using it in routes/informationPage.tsx like "import {getTableData} from 'wasp/client/operations'; Thats meaning i am calling this function through the wasp. In operations.ts file the function is written like " interface getTableDataProps<T> { ........ };...
No description

Bug?: `wasp start` reinstalls dependencies after stopping

When I make a change with wasp and everything is OK, it immediately recompiles without any problem. When I make a change and something is wrong, it gives me the error, I fix it and it recompiles again without any problem. The problem is when it tries to compile something that is wrong, so it gives me back correctly an:...

Add credits to each subscription

How to add monthly credits based on the subscription? Without affecting user credits in case they bought extra credits

is it good practice to call an action from an api?

is it good practice to call an action from an api? If so, should it be done?

delete entity

I have an entity called File which has an id. Give me an example action to delete a File