Karan
Karan
WWasp-lang
Created by Karan on 8/17/2024 in #đŸ™‹questions
Can Wasp be deployed for free?
I am eager to use wasp for my development - but I have not seen a 100% free tier option for all client, server and database. Does this exist?
14 replies
WWasp-lang
Created by Karan on 6/19/2024 in #đŸ™‹questions
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?
13 replies
WWasp-lang
Created by Karan on 6/15/2024 in #đŸ™‹questions
TypeError: Cannot read properties of undefined (reading 'id')
I am having issues with creating an entity using nested relations in Prisma. I don't think this is a wasp issue but I wanted to ask to make sure. The only thing I am wondering about is in case I am missing some setup in the main.wasp file. Happening in file src/actions.js on https://github.com/ksk385/c2log-app
7 replies
WWasp-lang
Created by Karan on 6/15/2024 in #đŸ™‹questions
This should never happen, studio should never stop.
[ 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/karankrishnani/Library/Caches/checkpoint-nodejs/.88641.0' -> '/Users/karankrishnani/Library/Caches/checkpoint-nodejs/prisma-studio-default'] {
[ Db !] errno: -2,
[ Db !] code: 'ENOENT',
[ Db !] syscall: 'rename',
[ Db !] path: '/Users/karankrishnani/Library/Caches/checkpoint-nodejs/.88641.0',
[ Db !] dest: '/Users/karankrishnani/Library/Caches/checkpoint-nodejs/prisma-studio-default'
[ Db !] }
[ Db !]
[ Db !] Node.js v20.12.2
[ 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/karankrishnani/Library/Caches/checkpoint-nodejs/.88641.0' -> '/Users/karankrishnani/Library/Caches/checkpoint-nodejs/prisma-studio-default'] {
[ Db !] errno: -2,
[ Db !] code: 'ENOENT',
[ Db !] syscall: 'rename',
[ Db !] path: '/Users/karankrishnani/Library/Caches/checkpoint-nodejs/.88641.0',
[ Db !] dest: '/Users/karankrishnani/Library/Caches/checkpoint-nodejs/prisma-studio-default'
[ Db !] }
[ Db !]
[ Db !] Node.js v20.12.2
8 replies
WWasp-lang
Created by Karan on 5/9/2024 in #đŸ™‹questions
Disable Plausible and enable Google Analytics
I keep seeing this on server side logs. Can you tell me how I can disable Plausible and enable Google Analytics? Right now I am changing the code imports in calculateDailyStats.js manually before my deploy (yet to test this out):
// import { getDailyPageViews, getSources } from './plausibleAnalyticsUtils.js';
import { getDailyPageViews, getSources } from './googleAnalyticsUtils.js';
// import { getDailyPageViews, getSources } from './plausibleAnalyticsUtils.js';
import { getDailyPageViews, getSources } from './googleAnalyticsUtils.js';
[ Server!] Error calculating daily stats: Error: HTTP error! Status: 404
[ Server!] at getTotalPageViews (/Users/karankrishnani/projects/experiments/test-open-saas/app/src/server/workers/plausibleAnalyticsUtils.ts:46:11)
[ Server!] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[ Server!] at getDailyPageViews (/Users/karankrishnani/projects/experiments/test-open-saas/app/src/server/workers/plausibleAnalyticsUtils.ts:28:22)
[ Server!] at calculateDailyStats (/Users/karankrishnani/projects/experiments/test-open-saas/app/src/server/workers/calculateDailyStats.ts:43:55)
[ Server!] at async resolveWithinSeconds (/Users/karankrishnani/projects/experiments/test-open-saas/app/node_modules/pg-boss/src/manager.js:34:14)
[ Server!] at async /Users/karankrishnani/projects/experiments/test-open-saas/app/node_modules/p-map/index.js:57:22
[ Server!] Error calculating daily stats: Error: HTTP error! Status: 404
[ Server!] at getTotalPageViews (/Users/karankrishnani/projects/experiments/test-open-saas/app/src/server/workers/plausibleAnalyticsUtils.ts:46:11)
[ Server!] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[ Server!] at getDailyPageViews (/Users/karankrishnani/projects/experiments/test-open-saas/app/src/server/workers/plausibleAnalyticsUtils.ts:28:22)
[ Server!] at calculateDailyStats (/Users/karankrishnani/projects/experiments/test-open-saas/app/src/server/workers/calculateDailyStats.ts:43:55)
[ Server!] at async resolveWithinSeconds (/Users/karankrishnani/projects/experiments/test-open-saas/app/node_modules/pg-boss/src/manager.js:34:14)
[ Server!] at async /Users/karankrishnani/projects/experiments/test-open-saas/app/node_modules/p-map/index.js:57:22
13 replies
WWasp-lang
Created by Karan on 5/8/2024 in #đŸ™‹questions
Turning off ASCII color logging in PROD
I have deployed my opensaas template on AWS App Runner and viewing the logs in CloudWatch is really ugly because ASCII Color logging is not supported. Can I turn off colored logging on PROD?
46 replies
WWasp-lang
Created by Karan on 5/8/2024 in #đŸ™‹questions
Getting error on Google Auth deployed version (using MacOS) and wasp version 0.13.2
Getting "An unknown error occurred while trying to log in with the OAuth provider." Google was working fine on localhost, but once deployed it is no longer working.
24 replies