Category "node.js"

How to access query result with the selection as object name

I have made a query on a data and it returns a result: [ RowDataPacket { 'COUNT(t.id)': 2 } ] How can I access it like the count number? I have tried result.COU

"Unexpected token Z in JSON at position 0" when trying to POST web form data to DynamoDB

I am creating an application with a web form that when the user clicks "submit", the data is added to a DynamoDB table. My web form's HTML code includes an API

How to run latest chromium/puppeteer on firebase

I do have a working application on firebase, that renders code and delivers a png image as output using puppeteer. However I would like to have a newer chromium

What is the valid name of the contact?

I'm trying to give a name to my smart contract. But All given names is invalid. Where is the mistake? Because I guess all names are alpha-numeric. Can you help

Unknown authentication strategy Passport js

I want to have 2 different instances of passport Js for my app (user and admin - both with jwt authentification ). I read in the official documentation that the

Why do i get 502 Bad Gateway error in my async express.js middleware?

I have a node API which is deployed and run as a Lambda function inside AWS. // mthd export const validateHeaderBearerToken = (req, res) => { if (!req.heade

Nodemailer with Gmail | There was an error: Error: Invalid login: 535-5.7.8 Username and Password not accepted

I am trying to set up email verification in my app using nodemailer with a Gmail account. My problem is that it reports an error, stating that my Username and P

How do I update Advanced Custom Fields on Wordpress with node-WPAPI?

I'm using node-wpapi to interact with my Wordpress site. I have the Advanced Custom Fields and ACF to REST API plugins installed. I'm trying to use wpapi to upd

unable to install express-graphql

I am trying to install express-graphql but getting this error.Please help npm install --save express-graphql npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to

How to integrate Sequelize ORM with Oracle DB

I’m trying to connect to an oracle database using Sequelieze ORM. I know that Sequelieze doesn't support Oracle but I'm asking if there is any way to do t

Hapjs Route Prerequisite is executed and route is always returning 404

I am building a web application using Hapijs. I am using route prerequisites to do something before the route handler is executed. This is my route server.route

firebase onAuthStateChanged infinite loop node js

I'm using firebase to sign in my users on my node js app. I would like to see if the user is authentificated or not and after it redirect to the page I want (lo

How to ensure that a job is processed only once with Firebase

I am adding tasks as Docs in a Firestore collection. On the Backend, I have multiple NodeJs stateless instances that process these tasks. All the instances are

Connection refused (Connection refused) between containers | ifnazar / docker-sybase

I have two containers in my docker-compose and my node application does not connect to Sybase database but my local machine connects version: '3' services: a

Google Gmail API returning: 401 Error - Request is missing required authentication credential but the code worked for the last few months

I have a weird problem, for a few months my web app worked just fine connection to my email account via Google API. but today, when I tried to connect to my ema

How do I connect to JawsDB (add-on) with a Github deployment (javascript program) on Heroku?

I have tried my best to debug this issue for the past few days with no luck. I am a beginner so there could totally be simple things I just didn't know. So I ha

Application Error while uploading to Heroku

For my application's backend I'm trying to host in on heroku. After creating a new app on heroku I've followed all the steps that it showed me and it was deploy

invalid url for nextjs image

I am writing the frontend of my application with nextjs I am trying to load image from the public folder but I am getting invalid url I copied the image to the

react-router-dom v6 StaticRouter context is not working

I'm trying to make SSR React web application. Everything works fine except staticContext. My server code is // IMPORTS const renderer = (req, store, context) =

While loop not terminating even after the 'return'

I am using the while loop to iterate through an array and trying to terminate the loop using the return (I tried foreach before which doesn't terminate for retu