Category "node.js"

Node.js MS SQL transaction

Can anyone help to implement MS SQL transactions in Node.js . I am try to execute multiple stored procedures inside a promise. Method 1 const executeProcedure =

Search and replace in 1 step instead of 3 with Vim regex

I have this code that I'd like to transform: const createFacebookAdVideoPayload = { const accountId = faker.datatype.uuid(); const pu

Unexpected token '}' in D:\ .users.ejs while compiling ejs If the above error is not helpful, you may want to try EJS-Lint:https://github.com/RyanZim/

This is my controller file async function getUsers(req, res, next) { try { const users = await User.find(); res.render('users', {

Webpack 5 webpackMissingModule error for node_modules package

I've been working on upgrading a repository from Webpack version 4 to 5, and I've encountered a very strange problem where Webpack will throw an error at runtim

Display data after POST request without reloading page

I have this node.js app where you can post comments on teachers profiles. teacher.ejs <!-- Form --> <div class=""> <form id="commentsForm"

Post Review on product through Amazon SP-API

Scenario: I'm build a NodeJs (NestJs Framework) application, Where I can get feedback from my clients (Amazon Product Purchaser) and Post its review on my Amazo

Node.js node:internal/modules/cjs/loader:936 error while trying to use discord.js

I'm trying to make a discord bot with the command prefix "*" but when I try to get the bot online/run it, it gives me this error: node:internal/modules/cjs/loa

cannot call googleapis library inside html

I've been trying to call a simple function (uploadFile(test.txt)) inside an html but I can not call neither my app.js or googleapis library node.js gives this e

endpoint don't work, doesn't return anything

¿can you help me to understand this? If I have an endpoint in a specific route it will display in the browser the expected content, but with the same cod

how to create a user in postgres to connect to nodejs?

It is my first time using postgres and I am trying to use it with node. I installed postgres in Ubuntu and created the user admin sudo -i -u postgres createuser

Fetching 1000s of employees with BambooHR API

Summary The BambooHR API documentation makes no mention of pagination. It's difficult to test with 1000s of records. How can this endpoint be used to fetch 1000

Typescript error TS2583 Cannot find name 'Set'

I have just started learning Typescript today and when I run tsc app.ts I get 11 errors but I thought I would start with the first. Tried updating tsconfig.json

What is wrong with my crypto price discovery bot?

I'm following Dapp Universitie's Create a PROFITABLE cryptocurrency trading bot video. I use git and npm install but when I run npm run start in the terminal I

Return not waiting for if condition

any one can help me.. I am developing a small project in Electron js. as a beginner I could not find any solution for this issue. I have search a lot similar pr

Get the list of firewall rules on a Postgres Instance in Azure return empty in a azure function

I'm trying to get the list of firewall rules on a Postgres Instance in Azure, using the azure-js-sdk. Locally it works like a charm, I've got the list of firewa

Running a for loop within a Puppeteer test

I'm trying to run a for loop within a Puppeteer test that sends values to a search bar: test('test one', () => { var results = [""] var fuzz = ['ap

Issue for "Sorry, name can only contain URL-friendly characters."

I am trying tutorial for Angular 12 from https://www.positronx.io/build-angular-crud-application-with-nodejs-and-express-rest-api/ and cannot execute below comm

Add Promise-Chain part in reuseable function

I got a bunch of functions which consist of a simple promise-chain which is mostly individual, anyway for all my functions a small block in the promise-chain is

Parsing a string into a format to be able to get data from JSON structure

So i was struggling to get my code to recognise this string sent from the front end of my site to the backend as a method to get some data from my JSON file. Pl

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