Wasp-lang

W

Wasp-lang

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

Join

Github auth "All user data"

When i create an oauth application, it says it will be able to read/write on all user data in github. i do no want this - how can i make it so all wasp requests is to read email - thats all

Stripe Checkout not opening when selecting buy plan

I have updated all the keys, and webhook, is there anything else i need to do?

Help Needed with OpenSaaS in GitHub Codespaces

Hey everyone! I’m running into a frustrating issue while trying to run OpenSaaS, deployed in GitHub Codespaces. Hoping to find someone who has navigated similar challenges or could point me in the right direction. Problem: • When I run wasp start, my app launches without issues, and the frontend works as expected. However, I’m consistently hitting a network-related error when trying to make API requests via Axios. Like when I visit /login and try to login for example...

I have added wasp to my PATH, but it still says it cant be found.

I have wasp in my local/bin/wasp, i also have shared/bin/wasp-lang/0.14.2/wasp-bin and data file . I am not sure why the command cant be found.

Plan switching not reflected in the database

Using Stripe, I switched from the hobby to the pro plan, but this change doesn’t seem to be reported to the database. Is this feature supposed to be supported?
No description

Building wasp apps: Easy. Deploying wasp apps: ?!@#$

I've tried deploying the back-end with 1) Docker 2) Node 3) "wasp start" reverse proxied behind Apache None of those work. All behave the same way. I can access my routes (e.g. /api/test) and wasp provided routes (e.g. /api/auth/me /api/auth/email/signup) are 404. I've given up on deploying on my server (it's just not possible) and am trying Railway There is a step which says "Open the Settings and go to the Variables tab: click Variable reference and select DATABASE_URL (it will populate it with the correct value)"...

Deploying with Docker issues

I'm tryint to deploy the back-end with Docker on an Ubuntu box. I have the front end up via Apache, and the backend is reporting 404 on routes like /api/auth/me and /api/email/signup. I added a test route and I am able to hit it with curl via both localhost and the fully qualified DNS url - so that much is working. I went in and hacked the .wasp/build/server/src/server.ts to print the list of routes, and, it's pretty much empty. --------------------...

what are key steps on protecting SaaS endpoint used to retrieve valuable data from a chrome ext.

I am gonna make a chrome extension. I want to use an endpoint from my saas to retrieve valuable data through my chrome extension. Well do you guys have any recommendation on how to 1st of all make an auth system and 2nd of protect my SaaS endpoint such that only users with a subscription can use it. Maybe using slme token.

Access to Manage Subscription

I’m getting an error when I try to click on the ‘Manage Subscription’ link (in Account Information). Apparently, the variable REACT_APP_STRIPE_CUSTOMER_PORTAL is missing in my .env.server. I cannot find related information in the current documentation. Thanks for your help.

Referencing entities via enums

Hello, though there is support for creating enums in schema.prisma, it does not look like there is a regular way to access them from JS/TS code as they don't seem to be exported as wasp entities in wasp/entities. For example, I've defined this enum: enum OneToOneMeetingStatus {...

What's the maximum payload entity size in wasp?

I'm getting PayloadTooLargeError: request entity too large errors if I pass JSON files into a create action. I've been experimenting a bit and it seems like it's around 100kb, is there any way to increase that? Or is it by design

failed to fetch an image or build from source: error building

Hi Wasp Team, im getting this error while trying to deploy wasp opensaas template with fly.io : failed to fetch an image or build from source: error building: failed to solve: failed to parse stage name "node:-slim": invalid reference format Do you have any clue on how I could fix that ?...
No description

Sandbox demo

Wouldn't there be a way to create an online sandbox that runs the demo found at https://wasp-lang.dev/docs/quick-start Something like github codespaces could help try the snippets from that page instantly and I think it could be very cool What do you think about this ?...

AWS file uploading setup

I'm trying to setup file uploading with AWS following this documentation https://docs.opensaas.sh/guides/file-uploading/ and I'm at this part (first image attached) but I'm getting a lot of access denied errors. Sorry if this is a stupid question, but has anyone found a way around this?
No description

How to update data coming from `useQuery`

Let's say you have the following code in an app that has a model Author as well as model Book where each book belongs to one author... ```jsx import { getAuthor, createBook } from 'wasp/client/operations' function MyComponent({ authorId }: { authorId: string; }) {...

Error calculating daily stats

The calculation of the daily stats which i assume is an automatic process gives these errors: [ Server!] at getTotalPageViews (/home/sven/SaaS//app/src/analytics/providers/plausibleAnalyticsUtils.ts:49:11) [ Server!] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [ Server!] at getDailyPageViews (/home/sven/SaaS//app/src/analytics/providers/plausibleAnalyticsUtils.ts:28:22)...

What's the best way to make live updates to the deployed prisma database?

I want to update my admin user to test some bits. What's the best way to do this?

How to generate Authorization header JWT token for custom API endpoint?

I've created operation which generates JWT token which is sent to my chrome extension. ```typescript action generateExtensionToken { fn: import { generateExtensionToken } from "@src/auth/extensionAuth",...

Using Typescript on a Basic wasp project.

How do I configure a basic Wasp project to use typescript? Currently my typescript page is showing blank....

error with import: import { Routes, Route, RouteObject } from 'react-router-dom';

Routes and RouteObject are underlined in red, but im using the latest version "[email protected]" I can't seem to fix this problem