NEROX
NEROX
WWasp
Created by NEROX on 2/20/2025 in #đŸ™‹questions
Puppeteer Scrapping: [ Server ] CAPTCHA detected!
[ Server ] Navigating to Google... [ Server ] Page content preview: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="origin-trial" content="A/kargTFyk8MR5ueravczef/wIlTkbVk1qXQesp39nV+xNECPdLBVeYffxrM8TmZT6RArWGQVCJ0LRivD7glcAUAAACQeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZS5jb206NDQzIiwiZmVhdHVyZSI6IkRpc2FibGVUaGlyZFBhcnR5U3RvcmFnZVBhcnRpdGlvbmluZzIiLCJleHBpcnkiOjE3NDIzNDIzOTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="viewport" content=" [ Server ] CAPTCHA detected! [ Server!] Error in scrapeSerpResults: Error: Google is requesting CAPTCHA verification
28 replies
WWasp
Created by NEROX on 2/17/2025 in #đŸ™‹questions
ERROR: extension "vector" is not available
Database error: ERROR: extension "vector" is not available DETAIL: Could not open extension control file "/usr/share/postgresql/16/extension/vector.control": No such file or directory. HINT: The extension must first be installed on the system where PostgreSQL is running. DbError { severity: "ERROR", parsedseverity: Some(Error), code: SqlState(E0A000), message: "extension "vector" is not available", detail: Some("Could not open extension control file "/usr/share/postgresql/16/extension/vector.control": No such file or directory."), hint: l: Some("Could not Some("The extension must first be installed on the system where PostgreSQL is running."), position: None, where: None, schema: None, tabl must first be inste: None, column: None, datatype: None, constraint: None, file: Some("extension.c"), line: Some(543), routine: Some("parse_extension_contro constraint: None, l_file") }
36 replies
WWasp
Created by NEROX on 2/11/2025 in #đŸ™‹questions
Consider updating to 'node16', 'nodenext', or 'bundler'
[ Wasp ] There are types at '/home/rootall/apps/WhiteHatSeoTactics/app/node_modules/wasp/dist/ext-src/server/webScraper.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. What this means? What I shoud do?
19 replies
WWasp
Created by NEROX on 2/10/2025 in #đŸ™‹questions
public API for Chrome Extension
I am trying to create an API to receive and send information from a Chrome extension, what would be the correct process to define it in main.wasp? Create me a complete example
39 replies
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