55 questions from the last 7 days
1
vote
1
answer
782
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
1
answer
241
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
2
answers
107
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,
...
Advice
0
votes
2
replies
79
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, ...
1
vote
3
answers
91
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 ...
-3
votes
1
answer
121
views
+50
"npm audit fix" doesn't fix vulnerabilities and instead keeps reporting the same 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 ...
-1
votes
1
answer
42
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....
Advice
0
votes
2
replies
52
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/...
-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 ...
0
votes
0
answers
60
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
51
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 ...
-5
votes
0
answers
61
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
55
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
61
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
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 ...
-2
votes
0
answers
73
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, ...
Advice
0
votes
1
replies
32
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 ...
1
vote
1
answer
40
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 ...
-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 ...
0
votes
0
answers
56
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 ...
0
votes
0
answers
37
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 ...
Tooling
0
votes
6
replies
47
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 ...
-1
votes
0
answers
34
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 ...
0
votes
0
answers
43
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
31
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 ...
2
votes
0
answers
39
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 and I’m lowkey losing my mind here so if anyone ran into this before pls tell me wtf is going on because I can’t tell anymore if it’s me or ...
0
votes
0
answers
45
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 ...
-4
votes
0
answers
33
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 ...
-2
votes
0
answers
44
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
1
answer
37
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 ...
-1
votes
0
answers
27
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
29
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
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 ...
-1
votes
0
answers
32
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. ...
1
vote
0
answers
34
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
38
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
1
answer
45
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....
0
votes
0
answers
60
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 (...
Advice
0
votes
1
replies
32
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. ...
Advice
0
votes
1
replies
19
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
14
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
0
answers
31
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
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 ...
-1
votes
0
answers
37
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". ...
0
votes
0
answers
32
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
1
answer
24
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....
1
vote
0
answers
31
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
16
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 ...
0
votes
0
answers
18
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 ...
0
votes
0
answers
41
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 ...