470,914 questions
0
votes
0
answers
16
views
Mondial Relay SOAP API "Invalid XML" error with Unexpected close tag despite correct XML in Node/React
I am integrating Mondial Relay’s SOAP API in a Node.js application using the soap npm package.
I am trying to create a shipment with the WSI2_CreationExpedition method and then generate the shipping ...
-3
votes
0
answers
31
views
Cannot destructure email from req.body as it is undefined [closed]
Nodejs sends TypeError: Cannot destructure 'email' from req.body as it is undefined
-3
votes
0
answers
30
views
Building react app , getting error while running it as a docker image but same is working if I use npm run dev command [closed]
Getting the above log and white screen
The same is working when I run it without containerizing it using npm but here it just gives a blank screen after login
Dockerfile
FROM node:16.13 as build
...
Tooling
0
votes
0
replies
36
views
How to convert javascript object of mongodb based query to mongodb query as parse
So I have an MEAN stack application where user types query ( or copy from mongodb compass ) in a editor and I use nodejs in backend to perform that query ,
So I use codemirror editor to text codes , ...
0
votes
0
answers
12
views
Datadog APM traces not appearing for AWS Lambda with Node.js despite metrics working
Problem
I'm trying to set up Datadog APM tracing for my AWS Lambda functions (Node.js/TypeScript), but traces are not appearing in the Datadog APM UI. Custom metrics are being collected successfully, ...
0
votes
0
answers
18
views
Chat message duplicated only on first send – Flutter + Node.js + Socket.io
I'm building a chat feature using Flutter frontend, Node.js backend, MongoDB, and Socket.IO.
Issue:
When sending the first message in a conversation, the message appears twice (duplicated).
If I exit ...
0
votes
0
answers
27
views
How to update a large number of mongodb documents in a tree structure?
I'm using mongo db with payloadcms and I have tree like structure.
We have a collection called nodes. A node have children as array and a parent id.
Now I want to change the node status like marking ...
0
votes
0
answers
28
views
Mammoth docx to HTML alignment not preserved
I am converting a DOCX file into HTML using Mammoth.js, and most formatting is preserved correctly (bold, italic, underline, tables, images, etc.).
But paragraph alignment and list item alignment (...
-1
votes
0
answers
25
views
Usage of multiple created npm modules in one project via npm workspaces
I have created a Next.js (TypeScript) application, called "vkdgen".
Afterwards, I've created and published a small component library for my project called "vkdFramework4NextJS". ...
1
vote
3
answers
55
views
How to handle multiple <img> elements with the same ID in Selenium (auto-detect and interact)?
How can I handle multiple <img> elements in Selenium when all of them have the same id attribute?
I need a way to automatically detect and interact with these images, even though they share the ...
1
vote
0
answers
39
views
Firestore Error: "16 UNAUTHENTICATED: Request had invalid authentication credentials" even after sending Firebase ID Token in Authorization header
I am building a project where the frontend is React, and the backend nodejs uses. I have used the firebase Admin SDK to use firestore .
Authentication is done using Firebase Authentication, and after ...
0
votes
0
answers
35
views
How to update multiple records with different values and SQL injection protection with raw SQL in prisma?
For November 2025, the Prisma does not support the updating of multiple records with different values. Although the transactions are being considered as main workaround for such cases, the transaction ...
-3
votes
0
answers
27
views
Express.js: "Cannot set headers after they are sent to the client" error with MongoStore sessions - page renders correctly Error [ERR_HTTP_HEADERS_ERR [duplicate]
I'm getting the error Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client in my Express.js application using MongoDB session store, but the page displays correctly in ...
0
votes
0
answers
17
views
npm test fails in Azure pipeline with Chrome Headless 107.0.5304.87 (Linux x86_64) ERROR
I have an Angular app with below specifications in my Azure pipeline
Angular: ^20.2.3
Node.js: v22.21.1
Karma: ~6.4.3
My tests run successfully in my local but fails in my pipeline with below error:
...
-2
votes
0
answers
37
views
Error entering clerk's email verification code [closed]
I am building a mobile application and the framework I am using is React Native + Expo. When it comes to verifying the clerk's email, there is an error that the verification failed. I received the ...
-1
votes
1
answer
49
views
FFmpeg doesn't detect small invalid data inputs [closed]
While writing tests for an endpoint that writes input to an FFmpeg process's stdin, I encountered an issue where FFmpeg doesn't respond when I pass small, invalid data (non-media data). It only reacts ...
1
vote
2
answers
96
views
Frequent update of records in database
I’m building a real-time chat application using NestJS, Postgresql (Main DB), Redis and Socket.IO.
My database schema (simplified) looks like this:
-- Chats
table chats (
id serial primary key,
...
0
votes
0
answers
55
views
Move HTTP request with cert file from nodeJs to .NET not working
I try to move a request with certificate from an old system made with NodeJS to a new system using .NET 8.0.
Running the .NET code, however, I always get the following error:
The SSL connection could ...
Advice
0
votes
2
replies
43
views
Code Review: Websockets integration using NestJS for trading application
I’m currently building a trading platform that requires streaming real-time price updates to the UI. I’ve implemented a WebSocket gateway and added handling for common issues such as:
Ghost/...
0
votes
0
answers
36
views
Firebase Functions Deployment Fails: npm ci Can't Install Packages - package-lock.json Out of Sync Despite Fresh Installation [closed]
I'm trying to deploy a Firebase Cloud Function (2nd gen) but keep getting the same npm ci error about package.json and package-lock.json being out of sync, even after completely deleting and ...
0
votes
0
answers
27
views
xml-crypto (v2.1.5) signed XML rejected by API - "Invalid File" despite removing injected Id
I am implementing an XML signing solution using Node.js to authenticate with a strict external API. I need to sign a "Seed" XML to obtain an access token. The API returns an generic "...
0
votes
1
answer
220
views
Stuck with Prisma error after updating to v7
I was working with Prisma and NestJS and it is fine but when I updated Prisma to version 7 I started getting errors, fixed them, but I am stuck with this one.
Part of schema:
datasource db {
...
-2
votes
0
answers
68
views
JWT authentication: req.user is undefined in protected routes even though token is valid [closed]
I'm implementing JWT Authentication in a full-stack (React + Node.js + Express) application. Login works, token is generated correctly, and the client sends it in the Authorization header.
However, ...
-8
votes
0
answers
54
views
Mux upload issues [closed]
Good day guys
Pls anyone with experience using Mux for assets management and streaming??, im facing mux upload issues,I get 405 even with the right upload method,and I also get network errors
1
vote
1
answer
36
views
How do I return a PDF (from PDFKit) using a SvelteKit POST handler?
I am currently working on building an application using SvelteKit, and as such am currently having a VERY difficult time figuring out why I can't trigger the client downloading a PDF (generated by ...
-5
votes
0
answers
57
views
Download button not asking for location in Firefox (but in Chrome does) [closed]
I have following two files (server.js and index.html) which together should allow me to download a file using nodejs server (ran by node server.js). It does happen when I click the link but only in ...
1
vote
0
answers
26
views
Flutterwave Webhook Not Triggering in Production (Works on Development)
I am integrating Flutterwave payments in my project(Node.js/Express).
In development, deposits work correctly:
User pays;
Flutterwave triggers the webhook;
Payment gets verified and the user balance ...
0
votes
0
answers
38
views
How to enable echo in Terminal.readLine (Effect)?
I want to make a minimal interactive console utility using Effect.
Started from an empty Effect app:
npx create-effect-app@latest
... (interactive part)
cd effect-app
npm install
Then I copy-pasted ...
Advice
0
votes
2
replies
73
views
SPA framework output access without node or any server setup?
New SPA frameworks like React, Angular, Vue etc. Requires running node js server. But is there any way to run "output" (code generated after transpilation step) without running any server, ...
-4
votes
0
answers
87
views
How to make "npm audit fix" fix vulnerabilities if it does nothing even there is "fix available via `npm audit fix`" message?
Executing the npm audit. It will be enough to show just last three issues - all of them has "fix available via `npm audit fix" message:
tar <6.2.1
Severity: moderate
Denial of service ...
Advice
0
votes
1
replies
29
views
Deploying embedded Javascript to a remote server
I am an experienced programmer, but am new to Web Development. I have become familiar with several technologies, including embedded Javascript, which I would like to use for my employer's project. ...
0
votes
1
answer
43
views
Can a single node-redis client instance handle concurrent requests?
Suppose I have code similar to this:
const client = await createClient()
.on("error", (err) => console.log("Redis Client Error", err))
.connect();
const promise1 = client....
0
votes
1
answer
59
views
Why does heavy object cloning degrade JS performance even when using structuredClone compared to manual optimization? [closed]
In a high-performance Node.js service, I noticed that structuredClone() introduces unexpected latency spikes when cloning large nested objects (30–50 KB each). Even switching to manual cloning ...
0
votes
0
answers
49
views
How to build an executable bundle.js for Node.js? [closed]
I want to bundle multiple TypeScript files and generate a file that bundles everything to be used through node build/bundle.js and that can be copy-pasted to CodinGame. Everything works (transpilation,...
0
votes
0
answers
25
views
Calling Claude CLI as a child process yields no output
I am trying to use the automation features built into the Claude CLI. Namely, if you pass in the --print flag argument, with a prompt (and --allowed-tools to make it actually do something) it will ...
0
votes
1
answer
36
views
Telegram nodeje api: getting 400 CONNECTION_NOT_INITED error
I've got a function to download an image from telegram message, it accepts message.media.photo:
const downloadPhoto = async (photo, client, name) => {
await client.connect();
const file = new ...
1
vote
1
answer
93
views
How to disable "body-parser" globally in NestJS and use it on specific routes?
If I have understood correctly, the NestJS with default Express engine uses and enables the "body-parser" as default. If so, I am not fine with it because most requests has GET-type, and for ...
0
votes
0
answers
83
views
Log in with Google redirects me back to the wrong URL [closed]
I'm trying to develop an app with Node.js that allows a user to log in with Google. This works fine on my local development machine where the Cloud Console authorized redirect URI is http://localhost:...
0
votes
0
answers
50
views
Fetch event does not fired in service-worker when cors request was sent in webpage [closed]
Here is my code. Both index.html and service-worker.js are served on http://localhost:8080.
index.html
<!doctype html>
<html lang="zh">
<head>
<script>
if ...
-2
votes
0
answers
30
views
Updating state in React.js but there is a lag of one element [duplicate]
const onChangeFn = (e,i) => {
const data = e.target.value;
if(/^\d?$/.test(data)){
let new_Array = [...values]
new_Array[i] = data;
setValues(...
Advice
1
vote
4
replies
49
views
Why does my asynchronous CPU-heavy function block the Node.js event loop even when wrapped in a Promise?
I have a CPU-heavy calculation function in my Node.js backend, and I expected it to run asynchronously because I wrapped it inside a Promise. However, when I call this function, the entire server ...
1
vote
1
answer
68
views
Segmentation fault when inserting row [closed]
I’m using GridDB 5.7 with Node.js 16 on WSL2 Ubuntu 22.04. I can successfully connect to the GridDB node, but when I create a container and try to insert a row, I get a segmentation fault:
My code ...
1
vote
1
answer
47
views
Mikro-ORM migrations work locally but no tables in Docker container database
I have a NestJS app using Mikro-ORM and PostgreSQL.
I’m new to Dockerizing database migrations and Mikro-ORM in NestJS.
Locally, when I run:
npx mikro-orm migration:create
npx mikro-orm migration:up
...
0
votes
0
answers
47
views
Daily quota exceeded for metrics after migrating to open telemetry [closed]
I'm working on a Node app, based in NestJS, hosted in an Azure AppService. I've just finalised migration from the legacy applicationinsights package to @azure/monitor-opentelemetry. After deploying to ...
0
votes
0
answers
52
views
Deploying Node.js application to IIS(CORS error though configured CORS configuration in Node.js server page) [duplicate]
I tried to deploy a Node.js application to IIS. I tried to send multipart form data from a frontend API as a post request. Though I have enabled CORS configuration in Node.js server.js page, CORS ...
0
votes
1
answer
54
views
How can I add API common prefix for controllers
I want to add an API common prefix for all controllers, e.g. /api/v1. I am using inversify with the @inversify/http-express package.
Here is my current base server adapter setup:
class Server {
...
0
votes
1
answer
62
views
How to make npm global packages use absolute symlinks instead of relative symlinks?
I'm using npm with a custom global prefix:
npm config set prefix ~/.local
When I install global packages, e.g.:
npm install -g yo pagedjs-cli asciidoctor-pdf yo generator-code
npm creates relative ...
0
votes
0
answers
20
views
JWT malformed error in Express verifyJWT middleware even though cookie is set
I'm building an authentication system in Node.js (Express + MongoDB), and I'm getting this error when verifying the access token:
Error: jwt malformed
at ... auth.middleware.js:38:15
Here is my ...
0
votes
1
answer
50
views
Cannot find module 'griddb-node' after installing GridDB Node.js client [closed]
I installed GridDB 5.7 and created a Node.js project:
mkdir griddb-node-test
cd griddb-node-test
npm init -y
npm install griddb-node
My code (test.js):
const griddb = require('griddb-node');
console....
-4
votes
1
answer
53
views
npm install react-scripts --save results in empty react-scripts folder [closed]
After cloning my React project from git, I ran npm install in my project directory, but the react-scripts/ directory remains empty.
I've deleted the node_modules/ directory and package-lock.json file ...