niconico6710
niconico6710
RRailway
Created by niconico6710 on 6/20/2023 in #✋|help
What are recommended tools for backend API logging (we're running a Fastify server)
We're trying to debug some issues happening in production on Railway, and the Deploy logs from Railway are a bit hard to parse. Does anyone have any recommendations on tools they've found helpful for debugging / logging? Is Datadog the go to here?
10 replies
RRailway
Created by niconico6710 on 1/24/2023 in #✋|help
Deploy is hitting Typescript Errors, but Yarn Run build and yarn run lint don't produce these errors
I'm trying to debug an issue where I can yarn build, and yarn lint locally and all is fine, but when I deploy it hits a Typescript error in one of the NodeJS Packages. Error is the following: globalThis.Headers is not a constructor I'm not super familiar with Nixpacks but I did what was written in the docs to make sure I have a similar Node Version: Specifying the engines.node field in package.json I changed that to:
"engines": {
"node": "18"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.1",
"dts-cli": "^1.6.0",
"husky": "^8.0.1",
"tslib": "^2.4.0",
"typescript": "^4.8.3"
},
"dependencies": {
"@bull-board/api": "^4.2.2",
"@bull-board/fastify": "^4.2.2",
"@bull-board/ui": "^4.2.2",
"@prisma/client": "4.9.0",
"axios": "^1.2.3",
"bullmq": "^1.90.2",
"envsafe": "^2.0.3",
"fastify": "^4.5.3",
"gpt3-tokenizer": "^1.1.4",
"nodemon": "^2.0.20",
"openai": "^3.1.0",
"pinecone-client": "^1.0.1",
"prisma": "^4.9.0",
"sequelize": "^6.28.0"
}
"engines": {
"node": "18"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.1",
"dts-cli": "^1.6.0",
"husky": "^8.0.1",
"tslib": "^2.4.0",
"typescript": "^4.8.3"
},
"dependencies": {
"@bull-board/api": "^4.2.2",
"@bull-board/fastify": "^4.2.2",
"@bull-board/ui": "^4.2.2",
"@prisma/client": "4.9.0",
"axios": "^1.2.3",
"bullmq": "^1.90.2",
"envsafe": "^2.0.3",
"fastify": "^4.5.3",
"gpt3-tokenizer": "^1.1.4",
"nodemon": "^2.0.20",
"openai": "^3.1.0",
"pinecone-client": "^1.0.1",
"prisma": "^4.9.0",
"sequelize": "^6.28.0"
}
Anyone have any ideas what might be going on here? It's still erroring out when I deploy to Railway
8 replies
RRailway
Created by niconico6710 on 1/24/2023 in #✋|help
How can I deploy a Github Service to only a single environment, rather than all of them?
I want to have a Github service deployed just to one of my Railway environments (e.g. staging), but when I go to +New add service, the service gets added to every environment I have. Is there a way to indicate I want a service to only exist in a given environment when creating? Deleting the service similarly deletes it in all environments.
12 replies
RRailway
Created by niconico6710 on 1/22/2023 in #✋|help
BullMQ (with Redis) on Railway keeps getting ECONNREFUSED errors when running locally
I used the BullMQ Template that is offered by Railway, which spun up a node codebase for BullMQ and a redis server. I created a local version of the environment as well. When I had a lot of jobs queued (maybe 100s), if I start the bullmq service locally it processes a few and then starts to get the following error message over and over - I also can't load the BullMQ UI. [[ IP ADDRESS REMOVED BELOW]]
Error: connect ECONNREFUSED ***{{IP ADDRESS}}***
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: {{IP ADDRESS}},
port: 6541
}
Error: connect ECONNREFUSED ***{{IP ADDRESS}}***
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: {{IP ADDRESS}},
port: 6541
}
Any idea what's going on here? I would guess that Railway is stopping my connections from the local service, or redis is actually going down for some reason?
44 replies