Category "node.js"

Alignment of column for PDFMake to sit at bottom of page

I am having some issues with figuring out how to set a column with content to the bottom of my PDF. This is not on every page, just the last page of the PDF, so

Express or Axios Error: socket hang up code: ECONNRESET

This is the first time i post a question here, sorry if some data is missing. I'm trying to do some web scraping to get some info of a table. The page only resp

React native crypto stream module is undefined

I'm giving a try with [react-native-crypto][1] in order to learn how to convert nodejs to be used in React Native project in the future. Unfortunately, I couldn

Keeping node.js express running after logoff

I've setup a node.js app started with pm2 and all is working fine I've also tried adding watch and save options (see more about the windows service below) pm2 s

npm install freezes and shows idealTree:chatting: sill idealTree buildDeps

npm freezes when I am installing anything. Even after deleting package-lock.json nothing changed. Here is a similar question. Can anyone tell how can I solve th

is there a way to extract duplicated row value in sql as the key/grouping value?

I have following two tables users id | name 1 | john 2 | ada events id | content | userId 1 | 'applied' | 1 2 | 'interviewed| 1 What would be the

Discord.js getting the server owner user tag returns null

I'm trying to make my bot send an embed when the bot joins a server the embed is supposed to contain the server owner's name but it returns null and doesn't wor

Can I subscribe event fire from smart contract's events with NodeJS?

I just wrote smart contract function with fire event like this. And create my node.js application with following code. const express = require('express') cons

MSAL login not working in production for node.js , Javascript application

I have used Msal.js for login to microsoft account inorder to call microsoft graph api. On local everything is working fine but after deployment on production,

How can I solve 404 issue using the OpenSea JavaScript SDK?

I am trying to use OpenSea API with the JS SDK. I am getting two types of errors. One is a deprecated warning. Another is a 404 error. This is the error I am ge

Connect nodejs (local) to cassandra database running on docker container

I have a nodejs API running locally and I would like to connect it to my cassandra cluster running on a docker container. I have the IP of the container but whe

How do I solve "Middleware "strapi::session": App keys are required" error in my deployment of Strapi to Heroku?

I'm following the official instructions to deploy my strapi starter app to Heroku. The app runs fine locally. The only thing I left out in my deployment instruc

How do I use Webpack to get all files into one file?

I want to use Webpack to add a handler on React. My file package.json look like this: { "version": "0.1.0", "private": true, "dependencies": { "@testin

When run node js application getting error whitelist ip in mongo cluster

I have implemented node js application and used MongoDB as database using nginx to run the project Everything working fine in local but when code is published i

How can we get Data from web3 using Nodejs

how can I get the token details like name, symbol, and decimals details using Nodejs and web3js

Not being able to remove cookies on nextjs in production

I am creating an application in NextJs and I set the cookie authorization when the user make login: res.setHeader("Set-Cookie", [ cookie.serialize("auth

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default while deleting images in cloudinary using react

I want to delete images of cloudinary in react , i am using firebase for backend , so cant use node.js backend api, so have to use cloudinary api to delete imag

NextJS: load global plugin in Mongoose before model creation

I have a folder structure looking something like this root/ pages/ models/ User.js utils/ plugin.js dbConnect.js I want to be able to load th

Operand should contain 1 column in express mysql query

Am curretly facing the following error when i try to query using express code: 'ER_OPERAND_COLUMNS', errno: 1241, sqlMessage: 'Operand should contain 1 co

How to send zip Files to a Node Server via HTTP POST? (server always only receives "{}")

For my Bachelor's Thesis, I am writing a program to visualize personal data requested via GDPR Art.20. Since this kind of data is normally zipped, I need to be