Category "node.js"

How to manually call httpTrigger Azure Function within another

I have a JavaScript httpTrigger Function on Azure that I want to call in another httpTrigger Function. Both are in the same resource group. I know about Durabl

Send file as buffer

const resp = await client.render(data); const Writable = require('stream').Writable; var buffer = []; const myWritable = new Writable({ write(chunk, encoding,

Can i make a RapidPro flow automatically by importing a Json file in it? How?

I had build rapidpro flow manually till now , now i want to automate it . What i want to do is convert a excel sheet (provided to me by my organization ) to jso

Path Error running AdonisJS in production via Docker

I'm getting a path error from require-ts and I have no idea how to determine what I'm missing. The app works fine locally using node ace serve but not within do

Truffle init returns cannot find module

After installing nodejs, I created a directory, installed truffle, but after typing the command truffle init it returns this error. I've tried everything, but t

TypeScript failes to infer return type of constrained generic function in some cases, why is this happening?

I have this code, which works just fine in a simple case, meaning the "permissionList" const is type inferred, VSCode can suggest me the properties, such as "pe

Configure Nginx as Reverse Proxy for Nodejs App on Jelastic

I've tried using standard nginx and nodejs configurations following many documentation, but unlike other tutorials there are several files that don't appear in

How to distinguish between two calls of the same method based on the argumetns?

I'm using sinon to stub functions of the Google Drive in my NodeJS application. I do two different calls of the create method under the same test (I can't do re

getting error when sending files to backend react node js

I am getting error of undefined when i send a file from react to backend, i am unable to understand the error. i am sending a image which will be uploaded in cl

Process 'rumpostgreswk' running on linux and took 100% memory and CPU, where does it come from?

I have a question, I'm running a nodeJs server on a Digital Ocean droplet. I'm using pm2 for monitoring the application, everything looks fine. However suddenly

How to use TransparentUpgradeableProxy as Transparent Proxy

I'm Solidity Newbie. I'm learning how to implement Transparent Proxy using Openzeppelin's TransparentUpgradeableProxy contract, but am having some problems. Ste

How to get input in a for loop in Node.js with only using the inbuilt methods?

I am trying to get multiple input and process them in the for loop. For Example - for(let i = 0; i < 10; i++) { input = how to get this is my question

Node JS "Importing binding name 'default' cannot be resolved by star export entries" for HLS.js

Currently I have the following folder layouts in node JS and installed express js sdk-components --- HlsLoader.js node_modules --- hls.js --- s

Why can't my app run on the intended port in Heroku?

I can't figure out what is the problem with heroku, I've spent 2 days trying to figure out what this error means to no avail. 2021-07-18T04:27:08.741998+00:00

express.json() is an unknown property

Typescript doesn't recognize the express.json() function although many tutorials state this code should compile as it is. Is there something I have done wrong?

Certain DOM Manipulation doesn't work with passport js

I realised when I am not logged in on my website certain DOM elements don't work. I am using passport-local implement auth on my website. For example when I pre

Thumbnail creation using azure function nodejs

I am trying to use azure function to create thumbnail(png) from .mp4 file uploaded to azure storage location. Azure function is automatically triggered when a n

How can I compare 2 nested objects, subtracting the differences & returning the equals?

I have the below 2 variables. const val1 = { students: { grade: [ { subject: "Math3", name: "jack", mark: 60,

SSL Certificate is unable to be verified when sending request to the same machine

I have a remote Ubuntu machine running a node server with next.js and using next-auth for authentication. Everything works fine with HTTP locally. Configuration

Why browser is not setting the cookie sent from my node js backend?

I'm trying to set a cookie from the backend server running at "api.mydomain.com" like this to the frontend running at "mydomain.com". res.cookie('auth', tok