470,866 questions
0
votes
0
answers
10
views
How to retrieve the running iOS Simulator UDID for simctl commands?
I'm writing E2E automation tests for an iOS application using WebdriverIO and Appium. My goal is to programmatically toggle the network connection on the iOS Simulator during specific test scenarios (...
-1
votes
0
answers
20
views
GraphQL Mutation returns success but it does not update database (Integration of Apollo and Node.js)
I am using Apollo Server with Node.js, The mutation returns a success response but it is not updating database.
Mutation:
type Mutation {
updateUserName(id: ID!, name: String!): Boolean!
}
Resolver:...
0
votes
0
answers
65
views
NginX is failing to properly redirect to my node.js, although if I go to the IP:port directly, it works
NginX's .conf file:
server {
listen 80;
listen [::]:80;
root /home/myUsername/serverDirectory;
index index.html index.htm;
server_name my.domain.name;
...
0
votes
0
answers
38
views
Deploying Node.js Backend on VPS (ubuntu) with Nginx web server [closed]
I need your guidance on something, please.
I recently bought my domain name (anexiums.com) and hosting from asurahosting, and then created a subdomain (api.anexiums.com) which I'm supposed to deploy ...
0
votes
1
answer
38
views
Vertex AI Node.js SDK Error: "generateImages is not a function" regardless of Imagen model version
Hi everyone,
I am facing a persistent issue using the @google-cloud/vertexai Node.js SDK for image generation. I keep getting the error TypeError: imagenModel.generateImages is not a function no ...
Advice
0
votes
0
replies
29
views
Exclude ffmpeg on installation
I use Playwright for recording and playback of the tests, but because of specific constraints, I can't have ffmpeg installed as part of Playwright. I want to find a way to exclude ffmpeg from being ...
-3
votes
0
answers
24
views
How to push data from device to my digital ocean cloud server using zkteco senseface 2a which has adms [closed]
I am working on the node js attendance project, so now i have to setup a zkteco machin, when user swipe the card the data will push directly from device to the digital ocean cloud server. I am using ...
Advice
0
votes
6
replies
78
views
Match a string not preceded by a pattern
I want to match a string according to a pattern but only when it is not preceeded by an other pattern.
const source = "abc.def.Ghi\n\
@:test(abc.def.Ghi2)";
const re = /(?!\()([a-z]\w+\.)+([A-Z]\w*)/g;...
-3
votes
0
answers
28
views
AWS ECS + NLB deployment: LiveKit AI voice agent works locally but voice/websockets fail in production
I’ve built an AI voice agent that connects with a student in real-time. Here’s the setup:
The student asks questions via the frontend.
The agent follows predefined instructions and responds using ...
3
votes
1
answer
71
views
Cannot send data to Node Express after converting from CJS to ESM
After having carefully converted my JS code for NodeJS from CJS to ESM (with some unexpected difficulties), I am failing to send a body content to my Node Express web server, running for test purposes ...
-2
votes
1
answer
63
views
ESM & CommonJS Dual Support in an Existing Node.js Project [duplicate]
I'm updating a Node.js project to support both CommonJS and ES Modules (Dual Package).
My current issue appears when trying to load the module from the project root using exports field instead of main....
Advice
0
votes
1
replies
29
views
Data-scheme enriched with meaningful explanations for AI
Is there any TypeScript-safe library that can automatically generate a schema from a real dataset, but with more than just field names and types?
I mean something that can look at real data and ...
-1
votes
0
answers
16
views
suppress onnxruntime warnings
I have a node.js project doing speech-to-text transcription with the xenova/transformers models. My project shows a lot of warnings - how do I suppress the warnings to log only errors?
I've tried ...
0
votes
1
answer
76
views
Facing problem while using Youtube downloader using nodejs
I'm working on a YouTube video downloader similar to Y2Mate or SaveFrom, using Node.js with ytdl and FFmpeg. The problem is that when I download any video, I only get formats up to 360p. I want to ...
0
votes
0
answers
44
views
Prisma Client not initializing with v7 and MongoDB, despite running prisma generate
I am attempting to set up a Node.js Express application using Prisma ORM v7.0.1 and a MongoDB database. I keep running into an Error: @prisma/client did not initialize yet. Please run "prisma ...
-1
votes
1
answer
44
views
Electron IPC: File objects arrive as empty objects {} in main process
Problem
I'm trying to send multiple files from the renderer process to the main process using Electron's IPC, but the file objects arrive empty.
Renderer Process:
if (files?.length > 1) {
window....
0
votes
0
answers
43
views
Why does "message:successful_payment" event work randomly?
As you can see in my short video example event message:successful_payment sometimes doesn't run after payment. In my video example there was only one execution after 3 payments (only the second ...
0
votes
0
answers
33
views
Connection to remote PostgreSQL server with hashtag in password with node-postgres
I have a password for a remote PostgreSQL server that I cannot change. This password contains hashtags (#). From searching, I know that this can be a problem.
I can connect to the server from the ...
0
votes
0
answers
20
views
Express Admin Panel Routes Not Working on cPanel with Passenger (React App Works Fine)
Problem Summary
I have a Node.js monorepo with both an EJS-based admin panel and a React frontend. The app works perfectly on localhost, but when deployed to cPanel with Passenger, only the React app ...
-4
votes
0
answers
38
views
How to Implement a Proper Error Handling Architecture in a Node.js/Express Server? [closed]
I’m building a Node.js backend (using Express + TypeScript) and I want to implement a clean, scalable, SOLID-friendly error handling system.
My goal is:
Developer Side: Print a detailed error log in ...
1
vote
1
answer
32
views
Is my index.ejs template forEach supposed to drop a closing paren?
Given:
<ul>
<%= users.forEach(function(user){ %>
<li><%= user.name %></li>
<%= }); %>
</ul>
and:
app.set('view engine', 'ejs');
app.get('/', (req, ...
Tooling
0
votes
6
replies
52
views
Vectorization PNG image with precise color number
I have a task to convert user PNG image to SVG with maximum possible color number coming from user setting (e.g. 8). It means that i should make initially image created from 8 colors and then convert ...
0
votes
0
answers
47
views
Firebase Gen 2 Cloud Function (Node.js) Fails with PERMISSION_DENIED on Secret Manager Access despite Correct IAM
I am running a Firebase Gen 2 (Node.js) Cloud Function and attempting to access a secret from Secret Manager. Despite confirming all recommended IAM roles, the function execution fails with a ...
-3
votes
0
answers
54
views
HTTP Put Request Not Updating But I Still Get A 200 Status Code
Whenever I try to update an object from the genres array using the code below, nothing happens. I get a 200 status code but the object remains the same with no updated value. where could I be going ...
0
votes
0
answers
35
views
App Store Connect API(Nest Js): Subscription created but status shows "Missing Metadata" [closed]
I'm automating iOS subscription setup using the App Store Connect API(Nest Js).
All steps (group, subscription, localization, screenshot upload, pricing) complete successfully.
However, in App Store ...
-1
votes
0
answers
35
views
Geofencing logic is Optimized or not for 1000 length gps position data or something 2000 geofencing lat log center? [closed]
I am receiving position data from a GPS device and fetching geofence latitude-longitude coordinates from my database. I also check which geofence is linked to which child and get the parents’ FCM ...
Advice
0
votes
1
replies
34
views
Deploying an express.js package
I am creating a web application using express.js. I have been following a course by Angela Wu, and one of the chapters involves a templating tool called 'Express' which is built on node.js. Following ...
3
votes
0
answers
44
views
Weird OpenAI streaming bug: concurrent JS streams randomly mix chunks across responses
I’m hitting a super weird issue with OpenAI’s streaming API.
I’m building a multi-message streaming thing in plain JS (no frameworks) where I need to pipe multiple OpenAI responses one after another. ...
-1
votes
0
answers
33
views
How do I fix my Windows installer, I see an error message relating to my Windows installer every time I try to install Node.js [closed]
I keep seeing this error any time I try to install Node.js in Windows, I have tried steps to fix my Windows installer, so far no luck. I can't use resources of Node.js like npm without installing it. ...
-2
votes
0
answers
45
views
synapse using docker i have faced this issue [closed]
2025-11-26T15:46:29.478Z DBG Checking connection to homeserver
2025-11-26T15:46:29.479Z INF **Starting HTTP listener** address=0.0.0.0:29318
2025-11-26T15:46:29.488Z DBG Request completed duration=8....
0
votes
0
answers
73
views
Vercel build error: “Cannot find module '../lightningcss.linux-x64-gnu.node'” when building (Vite + Tailwind + React) project [closed]
I’m trying to deploy my personal website to Vercel using Vite + React + Tailwind CSS. The project builds and runs fine locally (npm run build works without errors), but the Vercel build fails with the ...
0
votes
0
answers
46
views
Node throws a TypeError: Cannot destructure property of 'email' as it is undefined [closed]
TypeError: Cannot destructure property of 'email' of 'req.body' as it is undefined
const authUser = asynchandler(a sync (req, res) => {
const { email, password} = req.body;
const user = await ...
2
votes
2
answers
486
views
Prisma 7.0.1 : TypeError: Cannot read properties of undefined (reading '__internal')
I was using Prisma 6, and after upgrading to Prisma 7 I had to apply some changes to my schema.prisma. These changes include modifying the schema.prisma file and adding a new prisma.config.ts file.
My ...
1
vote
0
answers
35
views
Prisma inside Docker container cannot connect to Postgres on host machine (Can't reach database server at "123:5432"), but psql works inside container
I’m deploying a Node.js + Prisma backend using Docker on my VPS.
PostgreSQL is NOT in Docker — it runs directly on the VPS host (Ubuntu).
My backend is running inside Docker using docker compose.
...
1
vote
0
answers
41
views
Getting Firebase Auth custom claims in SSR application server-side
I want to get the custom claims for a user in a react-router app on the loader/action that run on the server. To do that, I am calling the User's method getIdTokenResult(false):
const authIdToken = ...
-1
votes
0
answers
28
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 ...
Tooling
0
votes
1
replies
55
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
27
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
24
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
50
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
63
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
38
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
94
views
How to handle multiple <img> elements with the same ID in Selenium (auto-detect and interact)? [closed]
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 ...
0
votes
1
answer
74
views
+50
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
30
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
26
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
41
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
54
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
110
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
1
answer
61
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 ...