Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-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 ...
Dhruv Luvani's user avatar
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 ...
heradsinn's user avatar
  • 113
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 ...
kdub1312's user avatar
  • 905
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 ...
M.Ismail's user avatar
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 ...
Zenixo's user avatar
  • 877
-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 ...
soroosh azadi's user avatar
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 ...
Nightcrawler's user avatar
  • 1,081
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 ...
Patrick Conrad's user avatar
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&...
terett's user avatar
  • 463
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 '...
user29888731's user avatar
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 ...
riv's user avatar
  • 7,343
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 ...
Juhana Kuparinen's user avatar
-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 ...
Chinmoy Samanta's user avatar
-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 ...
Honeybadger's user avatar
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 ...
Just another object's user avatar
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/...
fauzancodes's user avatar
0 votes
0 answers
37 views

Google Cloud Function with Node.js 12 still running past Node.js decommission date [closed]

I have a Google Cloud Function (1st gen) running on Node.js 12. According to the warning message in the Google Cloud Console, Node.js 12 was supposed to be decommissioned on January 30, 2025: Node.js ...
Max's user avatar
  • 101
-1 votes
1 answer
51 views

Console.log result shows ${field} instead of the actual string [closed]

In the code below, I run: node test-update.js and I'm expecting output in the console such as: . . . Field: "name" Data: "John Doe" Data: "Jane Doe" . . . but instead ...
Crowdpleasr's user avatar
  • 4,028
-3 votes
1 answer
47 views

Error Handling Environment Variables Natively in Node.jsv22 Within a Container

I am trying to work with .env files natively, as starting from Node.jsv20 (I am currently using version v22.14.0), it is no longer necessary to install libraries like dotenv to manage environment ...
Jorge Leonardo's user avatar
-4 votes
1 answer
76 views

Cypress on headless mode not able to resolve promises through await calls

I am developing an API testing backend using Cypress with cy.request. I am aware that cy.request natively uses built-in promises (Cypress.Chainable), so there is no need to handle it with JavaScript ...
rangana dilhara's user avatar
0 votes
0 answers
35 views

sendFile not working although the path is correct

We have this structure in the server: Inside controller.js: const path = require('path'); console.log(path.join(__dirname, "../views/recognition/index.html")) return res.sendFile(path....
soroosh azadi's user avatar
-2 votes
0 answers
38 views

Trying to install ANY JavaScript Module/Package with PNPM ended up Failing

So, recently, i just install NodeJS on my system, i switch to PNPM because NPM is too slow, so i install it using the command: npm i -g pnpm then, i run pnpm -v, it says: 10.5.2, but, problem arise ...
GWLT's user avatar
  • 1
0 votes
0 answers
29 views

How to initiate Ping/Pong in CCXT websockets under Node

I'm working on a CCXT based app server on Node. I want to measure websocket connection latency between Node and remote exchanges. For this purpose I'd like to initiate a ping right after websocket ...
Stan's user avatar
  • 8,768
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 ...
Tomáš Zato's user avatar
  • 53.3k
0 votes
1 answer
18 views

Shopify OAuth Redirects to Online Store Orders Page Instead of Custom URL

I'm implementing Shopify OAuth for customer login in my custom Shopify app, but after authentication, Shopify redirects users to the store's orders page instead of my specified localhost:3000/account ...
yerrapragada011's user avatar
-1 votes
0 answers
18 views

Libp2p nodes can not connect to send messages to other nodes

import { createLibp2p } from 'libp2p'; import { tcp } from '@libp2p/tcp'; import { noise } from '@chainsafe/libp2p-noise'; import { mplex } from '@libp2p/mplex'; import { mdns } from '@libp2p/mdns'; ...
jimleston Osoi's user avatar
-4 votes
0 answers
50 views

Why isn't apache server letting my Javascript CSS media and many other files through [closed]

I tried deploying my sveltekit app through a reverse_proxy using apache , it worked but all the styles are gone and functionality Image 1 Showing Responses Image 2 Showing APPLICATION I tried this ...
Em Pax's user avatar
  • 1
-3 votes
0 answers
45 views

React app doesn't load if the page is refreshed? [duplicate]

I am developing a webbapplication using a MERN stack with React being the frontend. The App.js returns a React Router: return ( <div className="App"> <Router> ...
user28751094's user avatar
-3 votes
0 answers
50 views

Why am I getting error: is not a function? [duplicate]

I have: /services/db.js import mysql from "../node_modules/mysql2/promise.js"; import config from "./config.js"; async function query(sql, params) { const connection = await ...
Crowdpleasr's user avatar
  • 4,028
0 votes
1 answer
63 views

Getting Error code 404 from Phone Pe PG Integration via Web Flow in Express |Node JS

I am integrating Phone Pe Payment Gateway on my Web Application. Getting response as 404 from Phone Pe API {"success":false,"code":"404"} On the Backend I have done the ...
Aftab Ahmed's user avatar
-1 votes
0 answers
87 views

Why does my React app show user details after logout and refresh?

Problem: I am working on a React application that uses context to manage user state. When a user logs out, their details should be removed. However, after logging out and refreshing the page, the user ...
Ujjwal Gaihre's user avatar
0 votes
0 answers
38 views

ReferenceError [Error]: Cannot access 'initialize' before initialization

I want to start a independent thread in Node.js to do some heavy task, this is my code look like: import logger from "../../common/log4js_config.js"; import { iterateAllKeys } from "../....
Dolphin's user avatar
  • 39k
-4 votes
0 answers
87 views

array?.map (if array is undefined) [closed]

const arr = [{ component_name: 'apple', component_part: [{ part_no: 1, part_name: 'xxx' }, { part_no: 2, part_name: 'yyy' } ] }, { ...
BdPk's user avatar
  • 33
-5 votes
1 answer
77 views

How to read .npz file in Javascript?

I'm trying to follow a tutorial on YT on how to write a basic neural network, but it's written in python. I'm trying to write everything using javascript and I haven't found a way to read the npz file ...
TableTopRug's user avatar
-2 votes
2 answers
92 views

Why am I receiving TypeError: . . . not a function? [closed]

test1.js: const myFunc = () => { return "Hello World!"; }; module.exports = myFunc; test2.js const test2 = require('./test1.js'); console.log(test2.myFunc()); When I run: $ node ...
Crowdpleasr's user avatar
  • 4,028
1 vote
0 answers
40 views

"Error: packages field is not an array when using pnpm-workspace.yaml in a monorepo setup"

I'm working with a PNPM monorepo setup, and everything was working fine when I was using pnpm.yaml, but after switching to pnpm-workspace.yaml, I’m encountering the following error: ERROR  packages ...
Naga mani kanta manam's user avatar
0 votes
2 answers
40 views

Express middleware to intercept responses and compare results

I'm writing middleware in NodeJS with Express API. I want to grab the response body and compare it with the results of another microservice. This is part of a process of replacing the current API. I'm ...
Gabriel Baierle's user avatar
-2 votes
0 answers
65 views

The value of count is changing . why is that happening? [closed]

For this code for a playwright test case, both the if condition and the else condition runs when the count value is 5. I am not updating the count value anywhere or re-fetching it. Does NodeJS does ...
Raider_Knight's user avatar
-2 votes
1 answer
49 views

Is Mongoose really an ORM, or is it something else? [duplicate]

I keep hearing people say that Mongoose is an ORM for MongoDB, but I thought ORMs are for relational databases like MySQL or PostgreSQL. Since MongoDB doesn’t use tables and rows but instead works ...
Rao Imtinan's user avatar
-2 votes
0 answers
35 views

Can Playwright be run inside a browser tab to control an iframe that's in the tab itself?

Weird use case, I need to display some reports but they are behind a login screen and need to be clicked into. Easy task if you're using playwright to open the browser and navigate there. However I'd ...
Ruslan's user avatar
  • 82
0 votes
2 answers
99 views

How do I determine the algorithm of a public key in nodejs?

Given a public key of the following form (invalidated in example), how would I find the algorithm used in Node.js, using the crypto package? -----BEGIN PUBLIC KEY----- ...
Andre M's user avatar
  • 7,554
0 votes
0 answers
42 views

How with YouTube Data API v3 get created clips on own channel [closed]

Screenshot from https://www.youtube.com/feed/clips How i can get a array of clips from this page "https://www.youtube.com/feed/clips" using YouTube Data API v3? Or tell me other solution for ...
GoMenXGames's user avatar
0 votes
0 answers
67 views

Name of video still "video.mp4" after downloading using yt-dlp

I'm using yt-dlp in a Node.js Express application to download videos from YouTube. I'm extracting the video title and using it to name the downloaded file, but all downloaded files are still named ...
Mohamad Karbejha's user avatar
0 votes
0 answers
39 views

I made a website for my conlang, and am having issues with multiple translations being displayed on pages [closed]

I created a conlang with my friend and we decided to make an online dictionary for it. All of the pages are dynamically generated using node.js, express, and handlebars. The data for the pages are ...
MCL_Playz's user avatar
-1 votes
1 answer
30 views

How to Detect If the Current Visitor is PageSpeed Insights or Lighthouse

I want to selectively disable Google Analytics (GA) when the page is accessed by PageSpeed Insights or Lighthouse to improve performance scores. Is there a reliable way to determine if the current ...
React-beginner's user avatar
0 votes
0 answers
26 views

Remote window in webrtc won't display

I am trying to setup this web rtc video call function for a site i am building, the call will only be connected if the admin has in the function the same name as the client side's name, in my server ...
gveloper's user avatar
-2 votes
0 answers
57 views

Difference between form data and x www form urlencoded

So I'm new to programming and recently started learning Backend. Okay so recently I came across a problem with postman while making POST request. So when I wrote a controller for registering a user I ...
Piyussh's user avatar
0 votes
0 answers
26 views

Why `virtual-store-dir` needs to be unique for each project in `pnpm`

virtual-store-dir The documentation https://pnpm.io/npmrc#virtual-store-dir says: NOTE: the virtual store cannot be shared between several projects. Every project should have its own virtual store (...
TSR's user avatar
  • 20.6k
2 votes
0 answers
72 views

How can I efficiently process large PostgreSQL datasets in Node.js without high memory overhead?

I have a Node.js application that interacts with a PostgreSQL database containing millions of users. For a specific feature, I need to fetch around 100,000 users based on a criterion (for example, ...
Nightcrawler's user avatar
  • 1,081
0 votes
0 answers
53 views

Why does `fs.writeFile` give "EBADF: bad file descriptor" when using `./`, but works with `/` in Node.js 22.14.0?

I'm encountering an issue with Node.js fs.writeFile when trying to write to a file using a relative path (./message.txt). Whenever I use ./, I get the error: [Error: EBADF: bad file descriptor, write] ...
Niranajn P Shaji's user avatar

1
2 3 4 5
3549