470,302 questions
0
votes
0
answers
51
views
MongoDB Atlas connection error in Node.js: querySrv ECONNREFUSED _mongodb._tcp.cluster0
I am building a MERN application and trying to connect my Node.js backend to MongoDB Atlas using Mongoose.
However, when I start my server, I get the following error:
Error: querySrv ECONNREFUSED ...
1
vote
2
answers
52
views
$match does not match all the fields entered
I am facing an issue with a MongoDB aggregation pipeline that uses the $lookup operator. The goal is to create a pipeline that filters data in my database based on input fields and returns the ...
Advice
0
votes
0
replies
17
views
does task affinity still matter when worker processes frequently change execution pipelines?
I am designing a local processing coordinator for a distributed file-processing system and I’m trying to reason about the usefulness of task affinity when workers frequently change their execution ...
3
votes
0
answers
46
views
Swagger error 502 Bad Gateway, on NestJS/Railway
I am facing a 502 Bad Gateway error when trying to access my Swagger API after deploying my NestJS backend to Railway.
Project Stack
Backend Framework: NestJS
Database: PostgreSQL
ORM: Prisma
...
-1
votes
0
answers
49
views
VS Code & TypeScript Debugging: Cannot find module, even when in the same directory
I am trying to debug a TypeScript program using Visual Studio Code. I can run and debug automated tests that import locally-defined modules using the interactive debugger, but trying to run a simple ...
-5
votes
0
answers
75
views
Nodemailer API returns 404 and "Unexpected token 'T', 'The page c' is not valid JSON" when sending email from frontend [closed]
I am trying to send an email from my website using Nodemailer.
My frontend calls a backend API which sends the email.
However, when I trigger the email request from the frontend, I get the following ...
-2
votes
0
answers
40
views
Node js HL7 ack using MLLP [closed]
I am working to implement integration with Gazelle HL7 . The problem I am facing in a particular phase is generating the a specific Ack. I am using node js hl7 with mllp protocol.
The image explains ...
-6
votes
0
answers
62
views
ng serve not always loading files [closed]
I've got a new project running NodeJS 24.11.1 and Angular 20.3.0 and I can't get it to consistently load files for me when I refresh the page. They just don't load. The network call (in Firefox) ...
-1
votes
2
answers
77
views
SQS message not returned by ReceiveMessage even though message exists in queue [closed]
I am building a small approval dashboard using Node.js, Express, and AWS SQS. The backend fetches one message from SQS and sends it to the frontend for approval. After approval the message is deleted ...
-4
votes
0
answers
109
views
TypeError: Unknown file extension ".jsx", when test React component with Mocha [closed]
I have a problem with testing components of my React app (Music playlist app) with Mocha + Chai + JSDOM + Babel + React Testing Library. I know that Node.js isn't created to work with .jsx module, so ...
Best practices
2
votes
2
replies
68
views
What's the best approach for implementing user context in Express.js?
I'm building a Node.js/Express API and need to implement a user context system that allows me to access the authenticated user from anywhere in my application (services, utilities, etc.).
The Problem:
...
0
votes
1
answer
23
views
Azure Functions project not running with npm start but does run with func start
I have a project that is configured with this package json file ( i am only pasting the relevant parts here)
"scripts": {
"build": "tsc",
"watch": "tsc ...
1
vote
1
answer
80
views
Validation error messages show up as "Invalid value" when trying to translate them in Express
I installed i18next packages in my Express project and enabled i18next.
middleware\localization.ts:
import i18next from "i18next";
import Backend from "i18next-fs-backend";
import {...
0
votes
1
answer
58
views
How to manage a "generic thread" for heavy operations
I'm working on a new Electron app and I'm struggling with it. I'm using "better-sqlite" which makes sync calls when querying database. For large queries, it blocks my UI because it's running ...
Best practices
0
votes
0
replies
36
views
Return type of a mutation which streams back data in GraphQL
Intro to the Problem
So imagine you need to have an API which should stream back a video/audio file, what would be the return type? If you have an example written in NodeJS or any other programming ...