473,436 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
19
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....
-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
1
answer
16
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
1
answer
32
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
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 ...
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
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
12
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:
...
-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
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: ...
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
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
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
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
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 ...
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
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
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)
...
-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 ...
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
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 ...
-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 ...
-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
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
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=...
-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
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
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
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
1
answer
51
views
Passing the username through an iframe without passing it in the url in extjs
Currently we have an extjs application where we are calling the /login API through an Iframe by passing the username as /login?username=YWRtaW5AZWZmaXNlci5jbzZTZzMTg= and reading this in the ...
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 ...
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: ...
-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 ...
3
votes
2
answers
90
views
How to correctly unref a V8 substring ("sliced string") from its source string
I spent a better (or rather worse) part of today hunting a bug that caused Node.js engine to randomly run out of memory when searching a giant log file line by line by regex.
The cause was that I kept ...
-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 ...
1
vote
1
answer
38
views
is it possible to check whether the user-given foreignFieldId (req.body.foreignFieldId ) exists or not before calling db.create(req.body) in MongoDB
Product Schema:
const productSchema = new mongoose.Schema({
name: { type: String, required: true },
price: { type: Number, required: true },
addedBy: { type: mongoose.Types.ObjectId, ref: '...
0
votes
2
answers
67
views
+300
Error uploading image to Cloudflare from Buffer with node js and FormData
I am trying to upload an image to Cloudflare from a buffer. I am using the following code:
const cloudflare_url = `https://api.cloudflare.com/client/v4/accounts/${process.env.CLOUDFLARE_ACCNT_ID}/...
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 ...
1
vote
1
answer
51
views
NextJS 15 Build Error occurred prerendering page "/404"
when running NODE_ENV=developement npm run build in nextjs project, there is the following error,
Error: should not be import outside of pages/_document.
Read more: https://nextjs.org/docs/messages/...
-1
votes
0
answers
46
views
Data not written properly on buffer [closed]
I am working on ETI (Enhanced Trading Interface) using nodejs.
In that there is session logon request with template ID 10000.
As per documentation the request header should not be encrypted and ...
-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
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 ...
-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 ...
-3
votes
0
answers
27
views
Getting error "Cannot find module 'graphql-upload' or its corresponding type declarations." in Node TypeScript application
I have created a Node application which uses TypeScript and below I have defined my tsconfig.json:
{
"compilerOptions": {
"module": "commonjs",
"...
-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)...
0
votes
1
answer
40
views
ConversationRelay Twilio Not allow user input when the agent is speaking
When the agent is speaking and the user interupts them the agent starts to gather the input even when they are speaking. How do I prevent this?
Here is my init of the Conversation Relay.
const ...