Category "node.js"

type conversion error while executing mongoDB find

I am following official MongoDB typescript tutorial to convert my javascript app to typescript one. After code conversion i am facing following error: routes/us

Reading schema & metadata from a parquet file

I am reading a third-party parquet file using parquetjs-lite const parquet = require("parquetjs-lite"); : reader = await parquet.ParquetReader.openFile(fileNam

Lambda function is not exiting but is logging the return

I have a Lambda function that I am trying to get to work fully. The code works in the sense it does exactly what I need it to however the issue comes in that th

React Js docker image building error with ERROR [linux/arm64 5/7] RUN npm install --silent. Running on Mac M1

I am creating a React Js docker image to run on multiple architecture when i run the command I get an error. I tried a lot but not successful. I am using Mac M1

Problem about dockerizing a NestJS app with Prisma and PostgreSQL

I am trying to build a NestJS app with Prisma and PostgreSQL. I want to use docker; however, I got an error when I sent the request to the backend. Here is my d

whatsapp-web.js, how do I send someone a contact card of someone else?

How do I send someone a contact card of someone else in whatsapp-web.js? Can I send a contact card when The person I send the contact card is saved on my phone

Webpack-dev-server "Cannot GET /"

i'm trying to get my webpack-dev-server to run but i face always the error "Cannot Get /" at the browser. I know that there are serveral questions with the same

How to find KnowledgebaseId in Dialogflow?

// const knowledgeBaseId = `the ID of your KnowledgeBase`; I can't seem to find the knowledgebase ID in Dialogflow nor in the Cloud Console. Please help.

NestJS Middleware Not Executed

The NestJS class or functional middleware doesn't run when connected from a Module. It is also not working for a single path, controller or for every path. Conn

ReactJS - Serving the Same Build from Different Paths

I try to run the same react app on different URLs but for now without success. Description of the problem: I have a react app that works perfectly fine when run

How to resolve persistent node error "EADDRINUSE"?

I'm trying to run an http server through node but I keep getting the EADDRINUSE error with specifically port 5000 (trying various others works fine). I have tri

How to fix cloudinary error "Must supply api_key"

I'm building an image upload app using multer and cloudinary. I've configured my environment variables properly using dotenv. However, when I try to upload file

Dynamic import - import() - fails when the code is packaged into an executable

I am working in a commonjs environment trying to dynamically import an es module Consider the below code : const mysqlController = (async function () { try{

How to get decrypted values in the aggregation result by the using of getter and setter in node.js

var mongoose = require("mongoose"); const Schema = mongoose.Schema; let CryptoJS = require("crypto-js"); function encrypt(text) { try { let ciphertext =

How can I convert opus packets to mp3/wav

I created a discord bot with discord.js v13, I get trouble with converting the opus packet to other file types, even the discord.js official examples haven't up

how to change npm install command in ElasticBeanstalk (Node)?

I knew that the elastic beanstalk environments will execute the command npm --production install. But, from https://github.com/npm/cli/issues/4027, npm v8 (Node

Mongoose and MongoDB - Get all countries and users associated with country

So I have a list of posts data that looks like this: [ {user: 'Bob', country: 'USA'} {user: 'Kim', country: 'Mexico'} {user: 'Darren', country: 'Mexico'}

Vercel 500 internal error! Cannot get logged in

[GET] /auth/signin?callbackUrl=http://localhost:3000 17:22:23:77 2021-10-24T12:22:24.062Z a07d6ace-3b47-4472-a45b-f7ef9989a9b5 ERROR [next-auth][err

Redis Connection Error with Heroku Redis Instance: Redis connection to failed - read ECONNRESET heroku instance

I have a node js app. And I use Redis from Heroku Redis(with async-redis library). Actually, I have two different Heroku accounts and two different Node.js apps

Cron job in strapi V3 does not get triggered when a method from strapi services is called

config/functions/cron.js async function logger() { console.log("Hello, Im Async"); } module.exports = { '*/10 * * * * *': async () => { con