ApexFossa45
ApexFossa45
WWasp
Created by ApexFossa45 on 3/23/2025 in #🙋questions
how to downgrade from wasp version?
Thanks! I'll look into it, i think I used version 14 before
31 replies
WWasp
Created by ApexFossa45 on 3/23/2025 in #🙋questions
how to downgrade from wasp version?
npm warn deprecated [email protected]: Use your platform's native atob() and btoa() methods instead npm warn deprecated [email protected]: Use your platform's native DOMException instead npm error code EISDIR npm error syscall symlink npm error path \wsl.localhost\Ubuntu\root\Projects\aicreationscentral.wasp\out\sdk\wasp npm error dest \wsl.localhost\Ubuntu\root\Projects\aicreationscentral\node_modules\wasp npm error errno -4068 npm error EISDIR: illegal operation on a directory, symlink '\wsl.localhost\Ubuntu\root\Projects\aicreationscentral.wasp\out\sdk\wasp' -> '\wsl.localhost\Ubuntu\root\Projects\aicreationscentral\node_modules\wasp' -- @kapa.ai still get this
31 replies
WWasp
Created by ApexFossa45 on 3/23/2025 in #🙋questions
how to downgrade from wasp version?
@kapa.ai
31 replies
WWasp
Created by ApexFossa45 on 3/23/2025 in #🙋questions
how to downgrade from wasp version?
npm warn deprecated [email protected]: Use your platform's native atob() and btoa() methods instead npm warn deprecated [email protected]: Use your platform's native DOMException instead npm error code EISDIR npm error syscall symlink npm error path \wsl.localhost\Ubuntu\root\Projects\aicreationscentral.wasp\out\sdk\wasp npm error dest \wsl.localhost\Ubuntu\root\Projects\aicreationscentral\node_modules\wasp npm error errno -4068 npm error EISDIR: illegal operation on a directory, symlink '\wsl.localhost\Ubuntu\root\Projects\aicreationscentral.wasp\out\sdk\wasp' -> '\wsl.localhost\Ubuntu\root\Projects\aicreationscentral\node_modules\wasp' -- @kapa.ai whats the issue? im trying to deploy my project
31 replies
WWasp
Created by ApexFossa45 on 3/23/2025 in #🙋questions
how to downgrade from wasp version?
thanks, do i have to enable cors for all endpoints? e.g. import cors from 'cors' import { config } from 'wasp/server' export const serverMiddlewareFn = (middlewareConfig) => { // Example of adding extra domains to CORS. middlewareConfig.set('cors', cors( { origin: [config.frontendUrl, 'https://aicreationscentral.com/', 'https://ai-creations-central-client.fly.dev/'] ,methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'] // Add all required HTTP methods ,credentials: true, // If cookies or auth tokens are used } )) return middlewareConfig -- should i add the esrver to the origin list? ai-creations-central-server.fly.dev? @kapa.ai
31 replies
WWasp
Created by ApexFossa45 on 3/23/2025 in #🙋questions
how to downgrade from wasp version?
thanks, do i have to enable cors for all endpoints? e.g. import cors from 'cors' import { config } from 'wasp/server' export const serverMiddlewareFn = (middlewareConfig) => { // Example of adding extra domains to CORS. middlewareConfig.set('cors', cors( { origin: [config.frontendUrl, 'https://aicreationscentral.com', 'https://ai-creations-central-client.fly.dev'] ,methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'] // Add all required HTTP methods ,credentials: true, // If cookies or auth tokens are used } )) return middlewareConfig -- should i add the esrver to the origin list? ai-creations-central-server.fly.dev?
31 replies
WWasp
Created by ApexFossa45 on 3/23/2025 in #🙋questions
how to downgrade from wasp version?
thanks, another issue is my server stopped returning any data for any endpoint, how can i fix this? e.g. https://ai-creations-central-server.fly.dev/operations/get-latest-creations should return latest creations for all users @kapa.ai
31 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
Interesting, I see the correct schema, but no data, within the proxied database at export DATABASE_URL="postgres://postgres:MYPASSWORD@localhost:5432/MYAPP_database" but not export DATABASE_URL="postgres://postgres:MYPASSWORD@localhost:5432/MYAPP_server". Even after running the migrations it worked. I wonder if something is not letting me see the data? @kapa.ai
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
@kapa.ai Hi kappa, is there a way to force a migration from dev into the production database? It's possible there is a mismatch based on what I see. I'm seeing if running something like npx prisma migrate deploy, with the database_url pointing to prod would work?
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
No description
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
tbh, i might just give up for the moment and use something like Adminjs or openapi/swagger to view my data: https://adminjs.co/ 🤷‍♂️ . I didn't expect prod connection to be so difficult, i'll have to come back to it later though for sure (appreciate the help though!)
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
No description
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
No description
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
No description
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
@kapa.ai got it thanks. is there a command, way that i can backup data from my fly.io instance?
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
@kapa.ai got it, where is the data in production fly.io database coming from then? if i do ssh then npx prisma migrate deploy, will that overwrite existing data?
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
@kapa.ai thanks, i think it connected, but the tables are empty/non existant. it can't find File table, nor Session. why?
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
@kapa.ai got it thanks. what would be the password and database if i'm using the proxy? would it be the same as the production database from fly.io?
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
@kapa.ai thanks, i did try updating the url to have postgresql:// to start with, and the format: postgresql://[username:password@]host[:port]/database. i am getting this error within prisma studio: Message: Error in Prisma Client request: Invalid prisma.file.findMany() invocation: error: Error validating datasource db: the URL must start with the protocol postgresql:// or postgres://. --> schema.prisma:4 | 3 | provider = "postgresql" 4 | url = env("DATABASE_URL") | Validation Error Count: 1
72 replies
WWasp
Created by ApexFossa45 on 1/5/2025 in #🙋questions
How to connect to production database
@kapa.ai thanks, it's not working. When I run wasp db studio, it says wasp start db must be called to run the database, but it cannot connect due to the url. even when using npx prisma studio command, it says environment variable not found DATABASE_URL. although i do see it within the .wasp/out/server/.env file (the production url)
72 replies