Category "node.js"

How can I download image using GridFSBucket?

I tried everything I found on internet but nothing solved my problem. I really need help on this problem. I'm following the tutorial "How to upload/store images

NodeJS Cannot Connect to Postgres at Dockerized Environment

I am trying to run a NodeJS application on Docker. However I get that error: could not connect to postgres: Error: connect ECONNREFUSED When I debug the proble

no such element in Js webdriverio with Appium . and how to use promise here?

We run this coming promise error. We use the await function but not working correctly. **java script var wdio = require('webdriverio'); var allureReporter =

The google auth api doesn't refreshes the auth token using existing refresh token

It says "invalid grant". It usually happens after inactivity for a few days. I'm using the below code : Response : { error: 'invalid_grant', error_description:

Error: "Module build failed (from ./node_modules/happypack/loader.js):"

This is the theme I am using for a dashboard project (I am under serious timeline pressure). https://themeforest.net/item/enlite-prime-reactjs-fullstack-website

How to reset your App Engine standard docker image

I'm running a small app in a NodeJS14 App Engine standard environment. The app is currently only around 30MB in size, but the version in app engine is currently

Installing Node Application on a server. Apache npm pm2

I have installed a node js application (myapp.js) on a server with a particular IP. I have npm installed and started the application I have done this before but

Can't insert data with mongoDB atlas; Error: queryTxt ETIMEOUT

I've tried to connect to mongodb with node.js, but get the following error. Although I've tried several available solution in this platform, like, changing my D

Error when run in command line "npm install firebase"

C:\Users\user\Desktop\CarInventory>npm install firebase npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: 3d-reac

How can I use node.js to read multiple line from txt file and then perform calculation on it?

I have got a .txt files with few lines that contains numbers, such as 25 26 25 30 12 14 63 16 29 02 22 23 and I need to add all the numbers in the line, so the

How do I redirect to a different page from this function nodejs

I need help redirecting after I submit this order. Basically everything is working but after the order is saved I can't figure out how to redirect the view. I w

Node-Red How to change the property of a node using a function-node

we are working on a group project and we have ran into a problem. We are creating a music player in Node-Red where when you inject start the music file starts t

Mongo DB Update data

I want to decrease previours quantity by 1 how can I do this in Node Js Mongo Db Here is my code: app.put('/quantityUpdate',async(req,res)=>{

How to deploy Nodejs Application on server through cpanel, and how to configure application manager?

I am using reseller's cpanel to deploy a nodejs server and I want that server to run continuously. First, I installed these three on my server: 1.) ea-ruby27-mo

express-session unable to retrieve session variable

I am using express-session to store my sessions persistently on a MongoDB database. The project worked perfectly in a development environment but for some reaso

Best way to structure deep time-series data in MongoDB?

I'm migrated from MySQL to MongoDB and looking to optimize the storage of my time-series data. Each item in my database has an array of values for multiple loca

Invalid Key Length in NodeJS, but Valid Key Length in C#

I'm converting Rijndael decryption from C# to NodeJS. The Key (or Passphrase) used is 13 characters long. The IV used is 17 characters long. Note: I have no con

Angular/Node.js, what's the ports when deployed?

I am currently building an app with Angular and NodeJS. On a development environment, it's quite easy, Angular is on port 4200 and I fetch response from Node.js

Why does my middleware produce an error when running get request by ID

I have just a simple API I am building for school. There is a collection of Books that are being accessed, displaying book by id, displaying all books, adding b

Using innerText without async in puppeteer

i was creating a certain code of puppeteer ,and i wanted to know if there's a way to get innertext or innerHtml or textcontent while using puppeteer without an