AAA
AAA
WWasp
Created by AAA on 1/20/2025 in #🙋questions
Stripe Problem! Everything works on dev, but not on prod
Most likely I switched something! Most likely opensaas.sh is good as it is. Maybe just a note to add somewhere!!
33 replies
WWasp
Created by AAA on 1/20/2025 in #🙋questions
Stripe Problem! Everything works on dev, but not on prod
In production, Stripe's webhook delivery order isn't guaranteed, so we need to make sure each relevant webhook handler properly updates the subscription status when appropriate. Hard find! Make sure your webhooks are compatible and test your website with a 100% coupon. 1. I was using the wrong url for my webhook - it's -server at the end 2. On dev you might get a different order in your webhooks so make sure you test your real website with a 100% coupon and make your webhooks resilient so they could appear out of order and still work!
33 replies
WWasp
Created by Killshot on 3/6/2024 in #🙋questions
Need Recommendations
I mean both sendgrid and Resend do the 100 emails a day I don't see the plus there tbh
24 replies
WWasp
Created by AAA on 1/20/2025 in #🙋questions
Stripe Problem! Everything works on dev, but not on prod
something still is going wrong with webhooks - on dev the world is great, on prod the subscriptionStatus isn't being updated. i'll reply when I have more info. The events are there on the webhook.
33 replies
WWasp
Created by AAA on 1/20/2025 in #🙋questions
Stripe Problem! Everything works on dev, but not on prod
https://docs.opensaas.sh/guides/deploying/#setting-up-your-stripe-webhook User error (of course!) the -server was missing by me for the stripe-webhook!
33 replies
WWasp
Created by AAA on 1/20/2025 in #🙋questions
Stripe Problem! Everything works on dev, but not on prod
Are you sure? In the opensaas template we have
api paymentsWebhook {
fn: import { paymentsWebhook } from "@src/payment/webhook",
entities: [User],
middlewareConfigFn: import { paymentsMiddlewareConfigFn } from "@src/payment/webhook",
httpRoute: (POST, "/payments-webhook")
}
//#endregion
api paymentsWebhook {
fn: import { paymentsWebhook } from "@src/payment/webhook",
entities: [User],
middlewareConfigFn: import { paymentsMiddlewareConfigFn } from "@src/payment/webhook",
httpRoute: (POST, "/payments-webhook")
}
//#endregion
@kapa.ai
33 replies
WWasp
Created by AAA on 1/20/2025 in #🙋questions
Stripe Problem! Everything works on dev, but not on prod
api paymentsWebhook { fn: import { paymentsWebhook } from "@src/payment/webhook", entities: [User], middlewareConfigFn: import { paymentsMiddlewareConfigFn } from "@src/payment/webhook", httpRoute: (POST, "/payments-webhook") } is this normal or does auth need to be false? @kapa.ai
33 replies
WWasp
Created by AAA on 1/20/2025 in #🙋questions
Stripe Problem! Everything works on dev, but not on prod
I rolled my keys and that still isn't the problem the only thing that is helping me understand is that in stripe i see this as the response Response body
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="/favicon.ico" />
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"
/>
<meta name="theme-color" content="#000000" />

<link rel="manifest" href="/manifest.json" />

<meta property='og:type' content='website' />
<meta property='og:title' content='A³Learn™' />
<meta property='og:url' content='https://aaalearn.com' />
<meta property='og:descripti
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="/favicon.ico" />
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"
/>
<meta name="theme-color" content="#000000" />

<link rel="manifest" href="/manifest.json" />

<meta property='og:type' content='website' />
<meta property='og:title' content='A³Learn™' />
<meta property='og:url' content='https://aaalearn.com' />
<meta property='og:descripti
A pure html, rather than a json response, what could this mean? @kapa.ai
33 replies
WWasp
Created by cooluke. on 1/21/2025 in #🙋questions
In development mode can I change the hostname of the server to something other than "localhost?"
When you run wasp start it gives you the network ip did you try using that?
7 replies
WWasp
Created by AAA on 1/20/2025 in #🙋questions
Stripe Problem! Everything works on dev, but not on prod
@kapa.ai If I am getting 200s and delivered on my stripe webhook then I think both are configured correctly or?
33 replies
WWasp
Created by wardbox on 1/13/2025 in #🙋questions
Wasp websockets with multi-region fly.io app
I mean everything works tip top - i'll let you know when I scale! 😍
29 replies
WWasp
Created by Jennn_ on 1/17/2025 in #🙋questions
cannot use local host
What's the error?
9 replies
WWasp
Created by wardbox on 1/13/2025 in #🙋questions
Wasp websockets with multi-region fly.io app
Hmm I don't have this problem! Websockets are an integral part of my platform - it could be a logic problem? Websockets really were (and still are) a big pain!
29 replies
WWasp
Created by wardbox on 1/13/2025 in #🙋questions
Wasp websockets with multi-region fly.io app
Are you saying that you're expecting the connection to last a few hours and so?
29 replies
WWasp
Created by Kbral on 1/8/2025 in #🙋questions
Authentication check every click
Ah!! Thank you miho!!!!
17 replies
WWasp
Created by Kbral on 1/8/2025 in #🙋questions
Authentication check every click
Yes! So you have two pages. The landing page and you didn't login and a new page that in a new tab and you logged in. You go back ot the landing page and it gives you a 401 which logs you out of the new tab as well I've noticed I've had this problem quite a long time but ignored it and can't solve it!
17 replies
WWasp
Created by Kbral on 1/8/2025 in #🙋questions
Authentication check every click
I have to admit defeat how do you fix this? Here is my answer from cursor
export default function App() {
const location = useLocation();
const navigate = useNavigate();
const excludedPaths = useMemo(() => ({
exact: ['/', '/login', ],
prefixes: ['/blog', ]
}), []);

const isPublicRoute = useMemo(() => {
return excludedPaths.exact.includes(location.pathname) ||
excludedPaths.prefixes.some(prefix => location.pathname.startsWith(prefix));
}, [location.pathname, excludedPaths]);

// Always call useAuth, but ignore its data for public routes
const { data: user } = useAuth();
const effectiveUser = isPublicRoute ? null : user;
export default function App() {
const location = useLocation();
const navigate = useNavigate();
const excludedPaths = useMemo(() => ({
exact: ['/', '/login', ],
prefixes: ['/blog', ]
}), []);

const isPublicRoute = useMemo(() => {
return excludedPaths.exact.includes(location.pathname) ||
excludedPaths.prefixes.some(prefix => location.pathname.startsWith(prefix));
}, [location.pathname, excludedPaths]);

// Always call useAuth, but ignore its data for public routes
const { data: user } = useAuth();
const effectiveUser = isPublicRoute ? null : user;
| The issue was that we can't conditionally call hooks in React (even with a ternary operator). Instead, we'll: Always call useAuth() But ignore its data when we're on a public route by using effectiveUser This should prevent the React hooks error while still maintaining the desired behavior. The auth check will still happen, but it won't affect your other sessions because we're not using its result on public routes. If you want to completely prevent the auth check, you'll need to modify this at a deeper level in your Wasp configuration or create separate route handlers for public and private routes. My splash page gives a 401 which logs me out of my other pages. I assume this will happen rarely, who is looking at the splash page of website AND logged in and working? but how do you all fix this error?
17 replies
WWasp
Created by Killshot on 3/6/2024 in #🙋questions
Need Recommendations
Interesting idea, I am looking at my template investigating if there are any and don't see anything, you must be right though! Not like I'm going to add that character anywhere. Too much Cursor!
24 replies
WWasp
Created by Killshot on 3/6/2024 in #🙋questions
Need Recommendations
for others using this way -- which I highly recommend! TEST your emails before you send them, for an unknown reason a null character was being inserted into my email which made it appear blank Do this!!!
// Clean the HTML content by removing null characters
if (emailContent.html) {
emailContent.html = emailContent.html.replace(/\x00/g, '');
}
// Clean the HTML content by removing null characters
if (emailContent.html) {
emailContent.html = emailContent.html.replace(/\x00/g, '');
}
Cursor/AI can then help you design pretty marketing emails and you don't need to use an external marketing way.
24 replies
WWasp
Created by ein on 1/10/2025 in #🙋questions
Looking for a Marketplace Boilerplate or Framework in Wasp!
It is possible! I have one I created with a seller/user dashboard with stripe express and listings etc, it's just a lot of work 🫠
7 replies