470,864 questions
0
votes
0
answers
59
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
36
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
35
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
27
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
23
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
5
replies
71
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
24
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
64
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
62
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
71
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
37
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
41
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 ...