NEROX
NEROX
WWasp
Created by NEROX on 12/18/2024 in #🙋questions
Unable to login with the OAuth provider.
13 replies
WWasp
Created by NEROX on 12/18/2024 in #🙋questions
CORS issue
@kapa.ai i'm experiencing a CORS issue: Access to XMLHttpRequest at 'https://api.elmossetgourmet.es/auth/me' from origin 'https://elmossetgourmet.es' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this errorAI api.elmossetgourmet.es/auth/me:1

Failed to load resource: net::ERR_FAILEDUnderstand this errorAI /checkout:1 Access to XMLHttpRequest at 'https://api.elmossetgourmet.es/operations/create-stripe-checkout-session' from origin 'https://elmossetgourmet.es' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this errorAI index-C393RbYu.js:169 Error al procesar el pago: At {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {…}, request: XMLHttpRequest, …} g @ index-C393RbYu.js:169 await in g Oe @ index-C393RbYu.js:37 Ge @ index-C393RbYu.js:37 ct @ index-C393RbYu.js:37 S1 @ index-C393RbYu.js:37 A1 @ index-C393RbYu.js:37 (anonymous) @ index-C393RbYu.js:37 Sf @ index-C393RbYu.js:40 Ta @ index-C393RbYu.js:37 kh @ index-C393RbYu.js:37 nh @ index-C393RbYu.js:37 f4 @ index-C393RbYu.js:37Understand this errorAI index-C393RbYu.js:78

POST https://api.elmossetgourmet.es/operations/create-stripe-checkout-session net::ERR_FAILED My middleware.ts: import type { Application } from 'express' import cors from 'cors' export const configureMiddleware = (app: Application) => { // Habilitar CORS para todas las solicitudes app.use((req, res, next) => { res.header('Access-Control-Allow-Origin', 'https://elmossetgourmet.es') res.header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS') res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept, Authorization') res.header('Access-Control-Allow-Credentials', 'true') // Manejar solicitudes preflight OPTIONS if (req.method === 'OPTIONS') { return res.status(200).send() } next() }) // ConfiguraciĂłn especĂ­fica para rutas de autenticaciĂłn app.use('/auth/*', (req, res, next) => { res.header('Access-Control-Allow-Origin', 'https://elmossetgourmet.es') res.header('Access-Control-Allow-Credentials', 'true') next() }) // ConfiguraciĂłn especĂ­fica para rutas de operaciones (incluyendo Stripe) app.use('/operations/*', (req, res, next) => { res.header('Access-Control-Allow-Origin', 'https://elmossetgourmet.es') res.header('Access-Control-Allow-Credentials', 'true') next() }) // Middleware de CORS general como respaldo app.use(cors({ origin: 'https://elmossetgourmet.es', credentials: true, methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], allowedHeaders: ['Content-Type', 'Authorization', 'X-Requested-With', 'Accept', 'Origin'], preflightContinue: false, optionsSuccessStatus: 204 })) }
25 replies
WWasp
Created by NEROX on 12/6/2024 in #🙋questions
Fly (Deploy command failed with exit code: 1)
First time seeing this error:
==> Building image
Waiting for depot builder...

Error: failed to fetch an image or build from source: error building: timed out connecting to machine: failed to list workers: Unavailable: connection error: desc = "transport: authentication handshake failed: tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2024-12-06T00:01:50+01:00 is before 2024-12-06T09:53:13Z"
file:///home/rootall/.local/share/wasp-lang/0.15.2/data/packages/deploy/node_modules/zx/build/core.js:146
let output = new ProcessOutput(code, signal, stdout, stderr, combined, message);
==> Building image
Waiting for depot builder...

Error: failed to fetch an image or build from source: error building: timed out connecting to machine: failed to list workers: Unavailable: connection error: desc = "transport: authentication handshake failed: tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2024-12-06T00:01:50+01:00 is before 2024-12-06T09:53:13Z"
file:///home/rootall/.local/share/wasp-lang/0.15.2/data/packages/deploy/node_modules/zx/build/core.js:146
let output = new ProcessOutput(code, signal, stdout, stderr, combined, message);
15 replies
WWasp
Created by NEROX on 12/5/2024 in #🙋questions
Google Analytics Reverse Proxy
How? I feel some inconsistency in my Analytics numbers and some traffic analysis tools. Also, my traffic may be coming from places where there is a possible adblock.
16 replies
WWasp
Created by NEROX on 12/2/2024 in #🙋questions
Volume purchasing instead of subscription/credits
I want to sell pears and apples. My users can buy 4 pears and 3 apples from me. Pear is a Stripe product. Apple is another. How could I manage this situation? 4 pears + 3 apples
10 replies
WWasp
Created by NEROX on 11/27/2024 in #🙋questions
Stripe: Coupon codes at checkout
How to set Coupon codes at checkout?
67 replies
WWasp
Created by NEROX on 11/26/2024 in #🙋questions
Google oAuth: change server name by app name?
No description
41 replies
WWasp
Created by NEROX on 11/26/2024 in #🙋questions
Exclude a country from accessing the app
Exclude a country from accessing the app, based on any geo IP api?
11 replies
WWasp
Created by NEROX on 11/25/2024 in #🙋questions
flash change theme at reload
When I navigate with the wasp routes to a page that doesn't have the DarkModeSwitcher it displays the proper theme but if I reload it, as it doesn't have the DarkModeSwitcher, it turns always white.
6 replies
WWasp
Created by NEROX on 11/21/2024 in #🙋questions
Error: Cannot find module 'dotenv/config'
No description
10 replies
WWasp
Created by NEROX on 11/17/2024 in #🙋questions
Remove cookie consent banner
No description
25 replies
WWasp
Created by NEROX on 11/17/2024 in #🙋questions
Fly Performance Questions
I understand the SSR status on Wasp, by any chance do you know anything about the performance difference between shared vs performance machines? The price difference is significant. Also, any increase (ram or cpu) has been experienced in order to increase performance on a Wasp application?
6 replies
WWasp
Created by NEROX on 11/14/2024 in #🙋questions
Navigating with /names/ instead /ids/
How can I change my navigation so instead the final slug is /subject/maths/grades instead of /subject/31c984d4-686d-4c3e-97dc-94dbd2bc5a58/grades Information to note, names can be repeated in the db so the key identifier is still the id but I want only the name.
14 replies
WWasp
Created by NEROX on 11/13/2024 in #🙋questions
migrate found failed migrations in the target
2024-11-13T09:21:07.224 app[d89015ef6d74e8] mia [info] migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve
48 replies
WWasp
Created by NEROX on 11/7/2024 in #🙋questions
Prisma Studio Deployed App (Fly)
How?
54 replies
WWasp
Created by NEROX on 11/6/2024 in #🙋questions
Error calculating daily stats Production
Error calculating daily stats: Error: 2 UNKNOWN: Getting metadata from plugin failed with error: error:1E08010C:DECODER routines::unsupported
71 replies
WWasp
Created by NEROX on 11/4/2024 in #🙋questions
Failed to resolve import
[plugin:vite:import-analysis] Failed to resolve import "../../../../src/admin/dashboards/analytics/AnalyticsDashboardPage" from "src/router.tsx". Does the file exist? /home/rootall/apps/minisaas-boilerplate/app/.wasp/out/web-app/src/router.tsx:9:35 5 | import { LoginPage } from "../../../../src/auth/LoginPage"; 6 | import { TooGradedPage } from "../../../../src/toograded/TooGradedPage"; 7 | import AnalyticsDashboardPage from "../../../../src/admin/dashboards/analytics/AnalyticsDashboardPage"; | ^ 8 | import { SGPACalculatorPage } from "../../../../src/sgpa-calculator/SGPACalculatorPage"; 9 | import { CGPACalculatorPage } from "../../../../src/cgpa-calculator/CGPACalculatorPage"; what's wrong???
49 replies
WWasp
Created by NEROX on 11/3/2024 in #🙋questions
router.tsx:7 Uncaught SyntaxError: The requested module '/@fs/home/rootall/apps/minisaas-boilerplate
router.tsx:7 Uncaught SyntaxError: The requested module '/@fs/home/rootall/apps/minisaas-boilerplate/app/src/auth/LoginPage.tsx' does not provide an export named 'default' (at router.tsx:7:8) why? loginpage.tsx: import { Link } from 'react-router-dom'; import { LoginForm } from 'wasp/client/auth'; export const LoginPage = () => { return ( <div style={{ maxWidth: '400px', margin: '0 auto' }}> <LoginForm /> <br /> <span> I don't have an account yet (<Link to="/signup">go to signup</Link>). </span> </div> ); }; main.wasp: route LoginRoute { path: "/login", to: LoginPage } page LoginPage { component: import Login from "@src/auth/LoginPage" }
5 replies
WWasp
Created by NEROX on 11/2/2024 in #🙋questions
Fail to compile
@kapa.ai Help! [ Wasp ] ext-src/cgpa-calculator-2/calculator/CGPACalculator2.tsx(3,10): error TS2724: '"wasp/client/operations"' has no exported member named 'createCGPACalculation2'. Did you mean 'createCGPACalculation'? [ Wasp ] ext-src/cgpa-calculator-2/calculator/CGPACalculator2.tsx(138,17): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'SetStateAction<CalculationResult>'. [ Wasp ] ext-src/cgpa-calculator-2/operations.ts(1,10): error TS2724: '"wasp/server/operations"' has no exported member named 'CreateCGPACalculation2'. Did you mean 'CreateCGPACalculation'? [ Wasp ] ext-src/cgpa-to-percentage-calculator2/calculator/CGPAToPercentageCalculator2.tsx(48,35): error TS2339: Property 'percentage' does not exist on type '{ cgpaResult: number; semesters: any[]; }'. ❌ --- [Error] Your wasp project failed to compile: ------------------------------- - SDK build failed with exit code: 2 ❌ --- [Error] Compilation of wasp project failed: -------------------------------- 1 errors found
72 replies
WWasp
Created by NEROX on 10/31/2024 in #🙋questions
Embeddings SaaS Template
What is [4] embeddings Comes with code for generating vector embeddings and performing vector similarity search. And what king of things it have? Features? Pages? etc... All
21 replies