Mason
Mason
RRailway
Created by Mason on 10/15/2023 in #✋|help
Suddenly getting CORS errors sending requests to my backend express server
Thanks again for your attention.
16 replies
RRailway
Created by Mason on 10/15/2023 in #✋|help
Suddenly getting CORS errors sending requests to my backend express server
Except that it seems like an extremely weird error to get for a missing env var while an endpoint processes a request, buuuuut I will look into it.
16 replies
RRailway
Created by Mason on 10/15/2023 in #✋|help
Suddenly getting CORS errors sending requests to my backend express server
Resolved, missing variables in the services
16 replies
RRailway
Created by Mason on 10/15/2023 in #✋|help
Suddenly getting CORS errors sending requests to my backend express server
Agree
16 replies
RRailway
Created by Mason on 10/15/2023 in #✋|help
Suddenly getting CORS errors sending requests to my backend express server
Locally the same code is working fine, double checked the variables I'm using, that when I'm removing them I also get CORS issues on localhost, etc.
16 replies
RRailway
Created by Mason on 10/15/2023 in #✋|help
Suddenly getting CORS errors sending requests to my backend express server
Seems to just be certain endpoints of the backend service which are affected. 🤔
16 replies
RRailway
Created by Mason on 10/15/2023 in #✋|help
Suddenly getting CORS errors sending requests to my backend express server
Oddly things still seem to be fine in my prod environment, which is configured the same way.
16 replies
RRailway
Created by Mason on 10/15/2023 in #✋|help
Suddenly getting CORS errors sending requests to my backend express server
Project ID: 2818bb01-9898-4d1c-8065-06e6404b3ed8
16 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
All looks to be working, thanks very much 👍
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
Working 👍 I'll try and wire up the networking again
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
Log downloader?
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
Yes
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
https://github.com/masoncusack/relevant - working branch is fix/breakup-frontend-backend
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
Hi, I separated the frontend and backend into separate services and have them working locally. I created a new service for the frontend pulling from my dev branch and am now getting this error during the deployment process.
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.
Checking the metrics for memory usage it seems to be at max 2MB, I don't see it peaking out. I added the Caddyfile and nixpacks.toml to frontend but it's still starting the development server. This must be because the services are containerised, my run command is yarn start, and the start script in package.json is react-scripts start. Wonder if this could have something to do with it? Should I change the startup command?
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
Will do, thanks very much for your help
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
Sure thing!
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
No, the frontend build is served via the backend in 1 Railway service, then the nlp-api and transcription-server are served in 2 other services. I could set things up as you suggested.
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
By setting the root folder to /frontend, aren't I cutting out the /backend stuff (Express server) completely?
81 replies
RRailway
Created by Mason on 9/29/2023 in #✋|help
Using internal networking to communicate with Websocket
Branch for nonprod deployment is nonprod btw (sorry if obvious)
81 replies