Category "node.js"

Error when set sameSite from strict or lax to none - HTTP only cookie - ExpressJS

I am running on a MERN stack project. Back-end runs on port 5000, and front-end runs on port 3000. After I've built to production, I pushed the server file to H

Strapi v4 Grant middleware error while setting providers

In Strapi v4, I tried to setup discord oath provider following the latest-docs. I've setup the keys and everything but when I try to hit /api/connect/discord I'

http request does not get called when uploading the data to Firebase - firebase cloud function

Hello everyone I am trying to fetch the data from Binance than do a schedule function that uploads the data from the previous fetch to the Cloud FireStore , the

NodeJS 'Readline' is not a constructor

I'm having issues with my NodeJS app. It's supposed to be a NodeJS server to serial port, but I'm having issues with Readline and it used to throw errors about

How to install PWA in magento2.4.2?

I have to **Install PWA studio for Magento 2.4.2** I did not find a proper way to install PWA studio in Magento and How to **add magento 2.4.2 to pwa studio**?

INNER JOIN on array of id's which returns array of objects by using sequelize raw query in node.js

I have data in the below format { "userId": 1 "stateId": 199, "productId": [ 1, 2 ] } I want to get this type of response

Error deploying a nextJS app on github actions

I'm trying to deploy my nextJS app on GitHub pages. I'm getting an error at the deploy stage. My node.js.yml file contains the following: name: Node.js CI on:

Trying to use nominal typing for id in typeorm typescript

I was following this article TypeORM Best Practices using Typescript and NestJS at Libeo. I got to the point of using nominal typing in our entity ID @PrimaryG

Firebase error - SyntaxError: Named export 'SDK_VERSION' not found

I am building a web app using Next.js, and I am using Firestore as my database and thus Firebase, I am connecting to the database with the following code: impo

Connection failure error unable to handle in passport-windowsauth, how to handle it

I'm trying to connect ldaps server using passport-windowsauth. If I provide valid credential the connection is working fine. If the credential is not valid then

React-query returns Cannot read properties of undefined even though I can see id is set

I am trying to learn react-query and been following quite a few guides. However everytime I try with parameters something goes wrong. This code that I have unde

How to deploy TypeScript express server to Google App Engine?

This is my app.yaml `runtime: nodejs10 manual_scaling: instances: 1 resources: cpu: 4 memory_gb: 16 disk_size_gb: 10 handlers: - url: / static_fil

Kubernetes new pod created, old deleted

I have a nodejs (nestjs) application running in a pod which downloads large csv files and then uploads these to a database (mysql, typeorm) I was tailing the lo

Displaying function values onto an already existing EJS template

I need to display a value from a JS file (indexRoutes.js) into an input box on an EJS template (calculator.ejs), I have included the script via a footer I have

how to get payment status from session id of stripe on nodejs server

I have integrated stripe to make payment. Frontend get a session id from one of the server API @Post("getPaymentSessionId") async getPaymentSessionId(@Body()

Why React Component render many time when get event from socket.io?

I am using socket.io for my project social network web, when user connect I join, but when I get message from socket.io by group chat, My component render messa

Exceljs: Excel warning when opening file after some worksheets duplication

I am using Exceljs to generate excelfiles. From other issues I found that there is no API for duplicating worksheets so I have to do it by copying model from ba

Read xlsx file and json file with url signed on azure blob storage using nodejs

I intend to read the contents of an xslx and json files on an azure blob storage with the urls signed with a limited life-to-live. I did this as : const

React-query mutation dosent refresh

I have another fetch of "SpecificList in another component, but when posts excutes it dosent refetch it only refetches on rewindowfocus? What could the reason b

I have trying to update my quantity in mongodb server Its showing Null. How Can I solve this?

##I have trying to update my quantity in mongodb server Its showing Null. How Can I solve this?## ``` const handleSubmit = event =>{ const inputQuantity