473,141 questions
-2
votes
0
answers
16
views
How to Generate Reports from MongoDB Community Edition and Integrate Them into a React UI?
I am using MongoDB Community Edition as my database and need to generate reports based on the data stored in my collections. The reports should be query-driven and provide insights such as aggregated ...
-1
votes
1
answer
17
views
Bad Option: --env-file=./env/.env.dev
I am unable to load the env file via start script in my package.json file because of which I am not able to work on my project, earlier with all these stated settings it used to work fine.
package....
0
votes
0
answers
9
views
Meta WhatsApp Cloud API: "(#100) Invalid parameter" error while sending template message in Node.js
I'm trying to integrate the Meta WhatsApp Cloud API in my Node.js + Express project to send a registration confirmation message after a user signs up. However, I am encountering an error:
(#100) ...
0
votes
0
answers
11
views
Express.js with HTTP/2 (SPDY) - net::ERR_HTTP2_PROTOCOL_ERROR in Chrome Only
I have a Node.js server using Express.js with SPDY to enable HTTP/2 requests. The goal is to handle more concurrent streams than HTTP/1.1 allows.
Setup
I'm using SPDY to create an HTTP/2 server:
...
-3
votes
0
answers
17
views
can we intergrate whole apache superset system with react.js and node.js? [closed]
I am working on a project where I need to integrate Apache Superset (for data visualization) with a React.js frontend and a Node.js backend. Here’s what I’m trying to achieve:
Frontend: React.js for ...
-1
votes
0
answers
9
views
Issue Uploading File to Stratus Bucket Using Node.js SDK
I am trying to upload my file to the Stratus bucket using the Node.js SDK method, but despite multiple attempts, the file is not uploading properly.
If someone can provide a working example of how to ...
0
votes
0
answers
17
views
How to extract a specific column information from a pdf using flutter
I have a pdf file which has a table. Inside the table I have multiple columns. I want to extract the data from a specific column for all the entries. The pdf might contain multiple pages.
I am able to ...
0
votes
1
answer
30
views
Error handling in NodeJS service classes and controllers
I am very new to both JavaScript and NodeJS and am struggling to grapple some of the concepts surrounding async, promises, and others, and especially how to structure the code properly. I am trying to ...
0
votes
1
answer
15
views
Where do I find server response data in socket.io-client?
I am interested in creating (for testing purposes) a fake client that mimics a browser accessing a route in a Node.js HTTP server. In the minimal example below, I am able to point an actual browser to ...
0
votes
0
answers
26
views
How can I prevent my node production deployment from installed devDependencies?
I'm running into an issue with the production deployment of my Node app. When I deploy to dev it's fine. When I deploy to production, the build errors on the node-sass package. Based on this SO thread ...
1
vote
0
answers
10
views
Firebase functions not changing firestore database
I'm new to firebase functions and recently I was tasked with adding two new functions. One needs to run daily at midnight and the other runs whenever a budget for an order in a firebase collection (...
0
votes
0
answers
7
views
In node js docx library im trying to generate a word document. if i change PageMargin, the headers and footers also got affected by it.what to do?
enter image description here
sections: [{
properties: {
page: {
margin: { top: 0, // 1 inch
left: 1440, // 2 inches (shifts content right)
right: 1440, // 1 inch (affects ...
-2
votes
0
answers
24
views
Can't npm install about anything on my VPS [closed]
This issue just popped up recently, like 20 minutes ago and I have no idea what's causing it. Prior to those 20 minutes, npm install was working just fine. I'm involved currently in web development ...
0
votes
0
answers
22
views
Unable to Access Blob Trigger Using Managed Identity in Azure Functions
I am trying to access a blob trigger in Azure Functions using a managed identity but am encountering issues. I have followed the instructions in the documentation and blog posts, but the issue ...
0
votes
1
answer
22
views
ERR_NETWORK_IMPORT_DISALLOWED when I run `firebase emulators:start`
I am implementing a payment gateway. I am using Firebase Cloud Functions to run these APIs. I have a functions folder that has my functions and everything is set up for them. I am emulating the ...
0
votes
0
answers
20
views
Passport JWT Unauthorized in node js and angular
I am using passport jwt with node and Angular. it is throwing unauthorized error.
I have tried with many solution on other stackoverflow questions but nothing works.
I am using sequalize with MySQL ...
0
votes
1
answer
24
views
All the services return as a undefined in Global Interceptor in NEST JS
I am trying to create a global interceptor in NestJS and call a service inside it. I have followed all the documented steps, but all the services used within the interceptor are still returning as ...
0
votes
1
answer
14
views
Node utils inspect function is it really bullet proof, and never throws an exception?
Starting from this code
const input:unknown // an unknown input that might be any type
try {
// trying to stringify it might throw (e.g. for circular references)
...
0
votes
0
answers
19
views
Getting gibberish file when trying to download a mp3 file using playwright
So, I am trying to create a scraper for a online playlist and using playwright as I have been trying my hand at this framework but when downloading a mp3 file, no matter whatever I try using different ...
0
votes
1
answer
25
views
How can I "inline" typescript dependencies?
I have a project that depends on 3 external dependencies
I'd like to inline those in my project such that their code is under a single source tree and I can remove them from package.json
Is there a ...
-1
votes
0
answers
22
views
Using TensorFlow.js to Correct Sentences Based on Training Data
I'm working on a Node.js project that uses TensorFlow.js to correct sentences based on a training dataset. The dataset consists of example sentences, and I want the machine learning model to learn ...
-1
votes
0
answers
19
views
Creating and managing multiple instances of whatsapp web js in Nodejs app
I want to create and manage multiple instances of whatsapp web js exactly as mentioned in the below post:
Creating and managing multiple instances of whatsapp web js
I got the source code of the "...
0
votes
0
answers
18
views
Using pgBouncer on DigitalOcean with Node.js pg Pool and Kysely – Can They Coexist?
I'm running a Node.js application that connects to my PostgreSQL database using Kysely and the pg Pool. Here's the snippet of my current DB connection logic.
I have deployed my database on ...
0
votes
0
answers
10
views
Hyperledger Fabric - Register and Enroll new Users
I am new to Hyperledger Fabric and, hence, to Fabric integrations with apps. My intent was on creating an API using Node that would register and enroll new Users. I know and have been successful doing ...
0
votes
2
answers
40
views
How to Optimize Docker Multi-Stage Build for Faster node_modules Copy?
I'm trying to optimize my Docker multi-stage build for a Node.js application, specifically focusing on reducing the time taken to copy node_modules. Currently, the step that copies node_modules from ...
0
votes
1
answer
27
views
GitHub Actions Node.js Workflow: Use Node Error
I am trying to create a Node.js workflow in GitHub Actions to build and run tests for every pull and push action on main brach.
The workflow has following jobs config:
jobs:
build:
runs-on: ...
-1
votes
0
answers
21
views
I'm having an Error on hugging face and nothing is working
I'm trying to deploy a project on huggingface but there is an error that I can't seem to solve.
I'm getting this error
Cannot start Node server on any port in the range 9001-9001.
Please install Node ...
0
votes
0
answers
11
views
^ version specifier is omitted in package.json when installing with explicit range (use pnpm 10.x)
command:
pnpm i vue@^3.4
Expected:
vue version should be recorded as ^3.4.38.
Actual:
vue version is saved as 3.4 (missing ^ and resolution-mode is lowest).
Additional Info:
Tried with --save-prefix=...
0
votes
0
answers
17
views
Suspected node stream backpressure issue when piping data to tar-stream
I'm attempting to perform the following operations via a nodejs stream pipeline:
List objects under a key prefix from an object store (minio)
Read the object data for each listed object as a stream....
-1
votes
0
answers
22
views
MongoDb- Node.js server mistakes [duplicate]
DB Error: MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted....
0
votes
0
answers
13
views
Custom field Implementation [closed]
Is there any effective way we can design schema for custom field like infinity task management table , my requirement is I have to add new column in my any existing table and field type will be ...
-3
votes
0
answers
25
views
¿Node.Js not working? Access Denied and It work unexpectedly [closed]
Before yesterday everything was working perfectly, but today when I started to work, for some reason I got VSCODE Access Denied which is strange considering that everything worked fine and without ...
-1
votes
0
answers
18
views
Erreur de logs sur VPS unbuntu avec Node.js et Nginx sur Hostinger.fr [closed]
Bonjour à tous,
J'espère que vous allez bien.
Pouvez-vous m'aider svp à corriger ces erreurs pour que mes fichiers Footer.jsx et Navbar.jsx soient pris en compte, apres le build, les fichiers modifiés ...
0
votes
0
answers
8
views
fastify/websockets v11.0.2 and fastify v5.2.1 wont work
I have a fastify project and i want to integrate a websocket.
According to the docs
import { FastifyInstance, FastifyPluginOptions } from 'fastify'
import websocket from '@fastify/websocket'
export ...
0
votes
0
answers
10
views
Esbuild Architecture Mismatch: x64 vs. arm64 Causing Vite Build Failure After Transition from Rosetta 2
Summary of the Problem:
Error Message:
During the build (triggered via dfx build), Vite (which uses esbuild internally) fails because it detects that the installed esbuild binary is for a different ...
0
votes
1
answer
44
views
Download public "Shared with Anyone" files from google drive folder via Node.js and googleapis
I am trying to read a list of files in a publicly shared Google Drive file. I am trying to identify a particular csv file by name and download it daily as the folder maintainer creates a new version ...
2
votes
1
answer
76
views
Can't resolve 'querystring' in old dependency
I have an old React app which I'm trying to run locally, but I encountered some issues regarding querystring and pollyfils. Here are my files:
packages.json:
{
"name": "test-immersion&...
0
votes
0
answers
17
views
Sass @use 'bootstrap/scss/bootstrap' failing with 'Can't find stylesheet to import' in minimal project
I'm encountering a persistent issue where Sass is unable to resolve the import path for Bootstrap, even in a minimal test project. I'm using gulp-sass with Dart Sass.
Here's the problem:
I'm trying to ...
0
votes
0
answers
28
views
Could not Resolve all files for configuration ':classpath'. could not find com.facebook.react:react-native-gradle-plugin:0.73.0
I've been facing this issue for the past 3 weeks. building the app always returns this error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project '...
0
votes
0
answers
17
views
Re-Using schema across two projects in NODEJS SAPUI5 CAP FIORI
I am new to nodejs sapui5 fiori cap applications and I am trying to create two applications that use the same database schema, they are connected to the same database as it is part of a multi-step ...
0
votes
0
answers
6
views
Amqp nodejs disconnect event
I'm using amqp in my nodejs scrapping service. Sometimes I get random disconnects and when it autoreconnects, it starts a new whenConnected promise but the previous is still running so my app mess up:
...
1
vote
1
answer
42
views
How to Set NEXT_PUBLIC_* Environment Variables After Next.js Build in Docker?
I'm trying to implement a "build once, deploy everywhere" approach for my Next.js application. I've managed to configure environment variables for server-side components, but I'm struggling ...
0
votes
0
answers
38
views
Firebase v2 Database Triggers not able access parent data from within trigger
It seems as if my promise to get parent data from within my Realtime Database trigger doesn't resolve.
Realtime Database Structure:
{
matches: {
{matchId}: {
startAt: number,
endAt: ...
0
votes
0
answers
27
views
Express.js Server not listening
I am trying to run a backend server which communicates with the frontend. My frontend works fine.
when I run node server.js in the terminal i get this message
When i try to check if the server is ...
0
votes
0
answers
26
views
JS/TS: What is the correct scope for functions defined in a loop? [duplicate]
Consider the following code:
console.log(process)
for (;;) {
function process() {}
}
This runs fine in node, printing the process variable. But using tsx it prints undefined instead. There's no TS ...
0
votes
1
answer
58
views
Puppeteer executing the first click action in an array immediately, regardless of delay
I'm facing a seriously weird issue with puppeteer, running on Chrome.
I have an array of click actions I want to execute on a webpage, which has a pdf.js based slideshow. Each action consists of ...
0
votes
0
answers
27
views
Multiple cameras websocket view - stream with raspivid, nodejs, and angular
SO, I have this code on multiple raspi cameras:
const express = require('express');
const WebSocket = require('ws');
const raspividStream = require('raspivid-stream');
const fs = require('fs');
const ...
-4
votes
1
answer
50
views
"Insert record if not present " logic is not working for some request if we hit 100 request per second in Node Express Application
I have made an POC application, where the requeirment is to insert the reocord if ther is no record present in the db. This logic is not working if we hit 100 request per second with same data. For ...
-2
votes
0
answers
28
views
Write and fill Excel file with scraped data using Puppeteer and Node.js [closed]
I have a bunch of data stored in an array of objects and now want to fill it into an already existing Excel file. Each property has its column where it needs to be filled into and it should start ...
-2
votes
1
answer
22
views
Nodejs Binance ws message const { WebsocketClient } = require('binance');
i am using Binance nodejs api and websocket but i get all the time the message
'Completed keep alive cycle for listenKey(TZbi36E773J4pVkD8ZacgrnAhQ9YlvR82q50lw6z9Nno89WIni8K0d65xXfE) in market(spot)...