Wasp-lang

W

Wasp-lang

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

Join

Error calculating daily stats

I have commented out the use of Plausible to get the analytics:
//import { getDailyPageViews, getSources } from './plausibleAnalyticsUtils.js';
import { getDailyPageViews, getSources } from './googleAnalyticsUtils.js';
//import { getDailyPageViews, getSources } from './plausibleAnalyticsUtils.js';
import { getDailyPageViews, getSources } from './googleAnalyticsUtils.js';
...

Scheduling email sending with Pg-boss

Project Overview I have developed a feature that allows sending a list of tasks via email to the logged-in user using Mailgun. I now want to enhance this functionality by implementing a subscription service for users to receive a digest of new tasks based on a search profile. Key Requirements...

ai-generated - 403

When I try to generate a new Wasp app and choose "ai-generated", I put my key in the ENV file. When I echo it, it shows, but when I try to generate, I get this error: Request { host = "api.openai.com" port = 443...

implementation of refinedev/inferencer

I just tried to implement @refinedev/inferencer into wasp but it didn't work for me(meaby because im bad in frontend), has anyone managed to do it successfully or maybe it won't work due to different routing? Any ideas? Only idea i tried is to put rafine routing in MainPage but it have no sense....

Stripe Test Integration

I get the following response from the command line after authenticating with stripe CLI and didn't get the webhook signing secret: "Waiting for confirmation...No directory provided for file keyring"

Handling logic for Buy options after a purchase was complete + commerce transactional features

If a customer has just successfully completed a payment, they should not be presented with buy option for the same subscription again as this does not make sense in most standard scenarios.
Furthermore, for example, an upgrade should cause the customer to pay a gap pro-rata rather than have to pay the full amount again, and a downgrade if allowed should either 1) refund the customer the gap pro-rata or 2) not refund anything. Also, there should also be an option in terms of any subscription changes being deferred to the next payment cycle or being implemented on a pro-rata immediately-adjusted basis. ...

Invoicing?

Is the customer sent an invoice on successful completion of payment? I would think it's a mandatory feature of any SaaS template as it's not something that can be avoided?

SaaS setting/option not available during product setup in Stripe

In your Stripe integration instructions:
Make sure you select Software as a service (SaaS) as the product type.
I cannot find the SaaS setting/option during product setup in Stripe. I'm using a pre-existing Stripe account as a test which was never associated with SaaS products previously but rather hardware products. I don't know if I have to get some special type of Stripe account for SaaS specifically?...

Issue with stripe webhook in production

I was trying to test subscriptions in production (worked in local). When i did purchase transaction was successful but it didnt change subscription details in the database ( default ones i didnt touch them). Probably there is some issue related with webhooks but i double checked my stripe keys.
No description

Is there any alternative to Stripe?

Stripe is not allowed in many countries like Turkey. So is there any alternative for stripe?

Lemon Squeezy Integration into OpenSaas (Alternative to Stripe)

I will be working on integrating Lemon Squeezy with open saas, as stripe is not supported in my country, after i am done i will submit PR to the team for others to use it. If you have already done it or thinking of doing so, feel free to chime in and let's talk it out. Link to LemonSqueezy Docs -- ...
No description

Using action in backend

Hello! https://wasp-lang.dev/docs/data-model/operations/actions#declaring-actions I see we can use action in the backend. I want to do so to avoid code duplication....

Navbar obscuring content: UI layout bug?

Is it just me or is your demo website's top navbar obscuring the actual pages/content without any offset to allow the user to access the content behind the navbar? In this example the title 'Account Information' is being obscured and the user cannot scroll further to reveal it....
No description

custom signup action not running

I have followed the documentation from here: https://wasp-lang.dev/docs/auth/entities#custom-signup-action I am not able to get this custom sign up action to run upon sign up, it is still running the default one. Do I somehow need to change the function being called upon signup? I was under the impression having the name customSignup defined in wasp.main would mean it would override any default signup action. Any help would be appreciated, thanks!...

Updating keycloak roles into database

Hey there, I was trying to integrate Keycloak into my Wasp project but I got into a problem. I wanted to add my client roles into my database whenever a user tries to log in so I can query those roles for specific operations later. For that I used the getConfig and userSignupFields functions from the Keycloak implementation. Until then, everything was ok and it worker, the problem is that after that user is saved into my databases, if I decided to change this user´s roles into Keycloak, next time the user log in, it is not updating those new roles into the database. After a long time thinking, I decided to call the Keycloak /userinfo endpoint myself in every operation. But for that I need the keycloak access token which I do not have. Am I missing something? Any other suggestions about how to solve my problem?...

Where are the server logs to find the dummy email verification token/link?

By default we’ve set up the email sender to use the Dummy provider. This is for local development only and no emails will actually be sent out! To obtain an email verification token/link, you must check the server logs on initial sign up.
Where is the location of the log file in question within the standard WASP app directory structure?...

UI intercept

I want to intercept any update, create, delete actions with a PIN screen to ensure the user is authorized to perform the action. How can I architect this on the frontend? Currently I am thinking this could be some sort of action middleware which overlays a PIN input and short circuits the action if the PIN code is incorrect. How might I set this up?...

Sitemap generation - Google search console error

Hello, I finished building my first wasp app but I have some issues with the sitemap. Put simply, google search console is unable to find it. How can I solve this issue ?...