Devmoha
Explore posts from serversDjango APi 502 Bad Gateway and CORS
i am getting CORS Error also i setup my cors correctly and plus
net::ERR_FAILED 502 (Bad Gateway) .
when i make updates and push my github is just restarts deploying but effects do not take for example my cors setup i tried modify many times also checked in chatgpt4 and chatgpt said the setup is correct but after i deploy it does not apply effects please help my project is urgent
18 replies
Vue js vite app taking long time
I'm building an Exam AI app using Vue.js, Django DRF API, and OpenAI API. The app involves heavy operations like uploading files, sending them to my API, and then to the OpenAI API. The backend functionality works perfectly, but the frontend, specifically the dashboard, takes at least 1 minute to load.
In the dashboard, there are multiple checks (e.g., verifying if the user is logged in or if they are an admin), which involve direct API calls instead of using local storage. Despite this, the backend handles these checks efficiently.
However, I deployed my Vue.js app on Railway.app without building the app (I didn't run npm run build). Could this be the reason for the slow loading times on the dashboard? How can I solve this issue?
14 replies
deploy drf api and react vite app in railway app
i have drf api and react vite app for notary system i built now the api is being deployed and live in railway app but the react vite is not i tried to use caddy but it just show the vite+react starter page not my actual website please help , thanks
117 replies
Service or Project for front end with backend project
i have next js app that is consuming api from django rest framework now how do i create full service with their domain rather than creating projects for each . any docs or tutorials will be appreciated
11 replies
Error: CSRF issue on custom domain
I'm having a CSRF error on my custom domain in my Django app deployed on the Railway platform. I've already added my domain to the CSRF_TRUSTED_ORIGINS list in my Django settings, but the error still persists. It's like I've given my friend a key to my house, but they're still unable to enter even though I've given them permission.
Can you please advise on any additional steps that I can take to troubleshoot this issue?
10 replies
error : custom domain 404 csrf railway app
i am encountering csrf error although i have used csrf token on every form in my project , in the setting i add my domain as CSRF_TRUSTED_ORIGINS=CSRF_TRUSTED_ORIGINS = ['https://www.kulmiye-edu.com/*', 'https://ke-web-platform-production.up.railway.app/*']
, when i am in the generated domain from railway i dont have this error but in the main domain the error is there ?
5 replies
error : www.kulmiye-edu.com redirected you too many times.
5 days ago i bought domain from namecheap , i used cloudflare to setup my dns records , i have two cname records : one for root domain : kulmiye-edu.com and one for www subdomain www.kulmiye-edu.com , i used railway generated cname records as value , what am i missing ? also in railway it saying cloudflare proxy detected , Project id : 441cb51a-0a80-4b07-a18d-5c77a696939f
15 replies