Category "node.js"

Can't find specific single user email query in Mongodb database?

API response show all user data in database to website UI const [product, setProduct] = useState([]); const [user] = useAuthState (auth) useEffect(() => {

Intermittent (time dependent) error when using Node Package rate-limiter-flexible in Express Node.js application

My overall goal is to apply the basic logic of the package "rate-limiter-flexible" for my Express Node.js application. I've gotten the basic functionality with

cURL and shell task

I am using gulpfile.js in my project to download files and it is working fine. var shell = require('gulp-shell'); gulp.task('folder_xyz', shell.task('curl --out

My JavaScript code is memory leaking, but I don't know how to fix

I have a Discord bot written in Nodejs (JavaScript), but I run into a memory leak issue recently. My code is using ~10GB memory, and it keep increasing. I run p

Mikro-ORM disable filter at controller / resolver level

I have two entities and filters with the same name. Note: cond is different for these two entities. @Filter({ name: "myFilter", cond: (args) => ({

Node.js/MongoDB - Returned document seems to revert back to a promise, even after I've awaited it

I'm doing what feels like a simple query, and this is a two part question. The first is whether there's a better way to do it, given my data structure, and the

How to identify a client with nodejs/express?

I am creating a web app that offers a membership access with a trial period. However, I need to be sure the users cannot create a new account with other credent

sendGrid not delivering emails from a node application hosted on vercel

I'm having issues sending emails via a node application hosted on vercel. I'm currently using sendGrid Email API with a verified domain. On development mode, it

Node.js Request pass response of api call as get response

I'm new to node.js. I'm trying to build a GET Method which is calling an external API. The response which is an octet-stream should be passed through as respons

Node-Postgres Error: timeout exceeded when trying to connect

We have a production deployed Node js application which services a good amount of traffic throught the day. The application is in loopback and connects to postg

What are "signed" cookies in connect/expressjs?

I am trying to figure out what "signed cookies" actually are. There isn't much on the net, and if I try this: app.use(express.cookieParser('A secret')); But

Hydration error due to if statement in Next.js [duplicate]

I am getting three errors due to the if statement in my _app.js file. Error: Hydration failed because the initial UI does not match what was r

How can I access each element in an array and use it for filtering data

I am trying to get an array in my req.query and want to use the elements in that array for filtering of data but unable to do so. As you can see in the below co

Objects are not valid as a React child (found: [object Error]). If you meant to render a collection of children, use an array instead.]

i think the error is from the checkout screen but i just cant find the '<' which is make believe that the error origin is from node_modules can anyone find t

Laravel chat app : Unable to deliver messages to a specific user

I have been trying to develop a chat app on Laravel with socket.io. Now, I am facing problem that is when a user is sending a message to a specific user, the me

Node ESCPOS printer text alignments are not working for STAR printer

I am using ESCPOS library for printing menu items using SP700 star printer. Data is coming properly in print but align and style properties are not working. My

(hashlips_art_engine-1.1.2_patch_v5) The "path" argument must be of type string. Received undefined

I'm trying to update some metadata for 10 JSON files, some of them get updated properly and some others give me the following error. Below you can see 6 files g

How to parse video stream coming from the nodejs server

I'm creating a video streaming service, the backend code look like this: const stream = new Readable(); stream.push(movie.data.slice(start, end + 1)); stream.pu

Cannot install mongo node.js

MONGO HELP I have tried many times to install mongo but I failed. I also checked my network cable but it is working. I am really worried for this kinda problem

session changes are losing when request ends in react and nodejs

Hi am trying to implement authentication using node js sessions in file mainLoginArea.js i am calling a function goButtonClicked which helps user to sign in by