haarismian
haarismian
WWasp-lang
Created by haarismian on 8/8/2024 in #🙋questions
database subscriptiontier and subscriptionstatus do not get updated on stripe completion
@kapa.ai what do you mean about webhook? do I need to keep the stripe webhook running all the time?
13 replies
WWasp-lang
Created by haarismian on 8/8/2024 in #🙋questions
database subscriptiontier and subscriptionstatus do not get updated on stripe completion
@kapa.ai the checkoutsessionid works fine
13 replies
WWasp-lang
Created by haarismian on 8/6/2024 in #🙋questions
What is the best place to initialize tracking on the backend
@sodic yes it does thank you!
12 replies
WWasp-lang
Created by haarismian on 8/6/2024 in #🙋questions
What is the best place to initialize tracking on the backend
@kapa.ai what is the best place to initialize analytics client on the backend, for further context I am using posthog, and it must be initialized using the following code, what is the best place to do so, right before making the posthog capture call?: import { PostHog } from 'posthog-node' const client = new PostHog( <API_KEY>, { host: 'https://us.i.posthog.com' } ) await client.shutdown()
12 replies
WWasp-lang
Created by haarismian on 7/28/2024 in #🙋questions
How to edit google oauth credits
@miho thank yo ufor sharing, I was able to follow those instructions to make that happen and it worked thank you
18 replies
WWasp-lang
Created by haarismian on 8/6/2024 in #🙋questions
How do I access the user's email when they signed up with google
@miho thanks for sharing that link you are the best!
12 replies
WWasp-lang
Created by haarismian on 8/6/2024 in #🙋questions
How do I access the user's email when they signed up with google
@kapa.ai if I want to create a posthog event when the user signs up with google, where should I do that
12 replies
WWasp-lang
Created by haarismian on 8/6/2024 in #🙋questions
Unable to tunnel to production db
@kapa.ai clearing the cache worked thank you!
16 replies
WWasp-lang
Created by haarismian on 8/6/2024 in #🙋questions
Unable to tunnel to production db
@kapa.ai I closed docker and ran wasp db studio again and got this error [ Db ] Environment variables loaded from .env [ Db ] Prisma schema loaded from ../db/schema.prisma [ Db ] Prisma Studio is up on http://localhost:5555 [ Db !] node:internal/process/promises:289 [ Db !] triggerUncaughtException(err, true /* fromPromise */); [ Db !] ^ [ Db !] [ Db !] [Error: ENOENT: no such file or directory, rename '/Users/haarismian/Library/Caches/checkpoint-nodejs/.90034.0' -> '/Users/haarismian/Library/Caches/checkpoint-nodejs/prisma-studio-default'] { [ Db !] errno: -2, [ Db !] code: 'ENOENT', [ Db !] syscall: 'rename', [ Db !] path: '/Users/haarismian/Library/Caches/checkpoint-nodejs/.90034.0', [ Db !] dest: '/Users/haarismian/Library/Caches/checkpoint-nodejs/prisma-studio-default' [ Db !] } [ Db !] [ Db !] Node.js v20.13.0 Internal Wasp error (bug in compiler): This should never happen, studio should never stop. CallStack (from HasCallStack): error, called at cli/src/Wasp/Cli/Command/Db/Studio.hs:29:3 in waspc-0.13.2-inplace-cli-lib:Wasp.Cli.Command.Db.Studio
16 replies
WWasp-lang
Created by haarismian on 8/6/2024 in #🙋questions
Unable to tunnel to production db
@kapa.ai this is my proxy running (base) haarismian@Haariss-MacBook-Pro app % fly proxy 5432 -a yellowbird-db
Proxying local port 5432 to remote [yellowbird-db.internal]:5432 w and this is the error ❌ --- [Error] Can not connect to database: --------------------------------------- The database needs to be running in order to execute this command. You can easily start a managed dev database with wasp start db. (base) haarismian@Haariss-MacBook-Pro app % wasp start db ❌ --- [Error] You are using custom database already: ----------------------------- Wasp has detected that you have defined DATABASE_URL env var in your .env.server file. To have Wasp run the dev database for you, make sure you remove that env var first. (base) haarismian@Haariss-MacBook-Pro app %
16 replies
WWasp-lang
Created by haarismian on 7/28/2024 in #🙋questions
How to edit google oauth credits
@kapa.ai when I added the database_url I am able to run the fly proxy command but when I run wasp db studio I get this error "The database needs to be running in order to execute this command. You can easily start a managed dev database with wasp start db."
18 replies
WWasp-lang
Created by haarismian on 7/30/2024 in #🙋questions
if I don't use "www." then my app doesn't show
thanks @miho
18 replies
WWasp-lang
Created by David on 7/30/2024 in #🙋questions
Deployed /auth/me blocked by CORS policy
Is that done by adding the cname to www? Did you add the middleware?
42 replies
WWasp-lang
Created by David on 7/30/2024 in #🙋questions
Deployed /auth/me blocked by CORS policy
@David what ended up working?
42 replies
WWasp-lang
Created by David on 7/30/2024 in #🙋questions
Deployed /auth/me blocked by CORS policy
@miho @kapa.ai @David I am having the same issue, works just fine as yourdomain.com, but at www.yourdomain.com the cors issue is present, which is also causing the opensaas template's login button to malfunction
42 replies
WWasp-lang
Created by haarismian on 7/30/2024 in #🙋questions
if I don't use "www." then my app doesn't show
ok please give me the instructions for sqaurespace dns settings to set up dns records for both, these are my current dns settings @kapa.ai Custom records Add record Host Type Priority Data @ A N/A 66.241.125.42 @ AAAA N/A 2a09:8280:1:0:0:3a:2ab8:0 @ TXT N/A google-site-verification=41-vp_Zjf1dYdk8SgQgGLaXZSQc1_SHhW71Ty-iDVUM 44853346 CNAME N/A sendgrid.net _acme-challenge CNAME N/A yellowbirdapp.com.dyy98g.flydns.net _dmarc TXT N/A v=DMARC1; p=none; s1._domainkey CNAME N/A s1.domainkey.u44853346.wl097.sendgrid.net s2._domainkey CNAME N/A s2.domainkey.u44853346.wl097.sendgrid.net em5273 CNAME N/A u44853346.wl097.sendgrid.net url1332 CNAME N/A sendgrid.net
18 replies
WWasp-lang
Created by haarismian on 7/30/2024 in #🙋questions
if I don't use "www." then my app doesn't show
@kapa.ai when setting up the WASP_WEB_CLIENT_URL can it be both?
18 replies
WWasp-lang
Created by haarismian on 7/30/2024 in #🙋questions
if I don't use "www." then my app doesn't show
@kapa.ai I would like both to work
18 replies
WWasp-lang
Created by haarismian on 7/28/2024 in #🙋questions
How to edit google oauth credits
@sodic and @kapa.ai I was able to solve it for local. I have a system based on the initial template of credits used for each action in my app, however for trial users I wanted to manually adjust the credits (my friend signed up I want to give them 100 credits for example). the google auth users appear as blank username and password in the users table. @kapa.ai how can I make db edits in prod when it is deployed to fly.io
18 replies
WWasp-lang
Created by haarismian on 7/25/2024 in #🙋questions
When I made a custom api, I added user as an entity, but in the context it is empty
For those that come in the future and @kapa.ai , this post contained the solution thanks to @miho https://discord.com/channels/686873244791210014/1255103917499613226 always saving the day
22 replies