Category "express"

exceljs error when reading csv file uploaded from windows

When uploading csv file created by windows; an error is generated when trying to parse the file using exceljs. Here is the error message: message: "Can't find e

Stripe Construct Event: No signatures found matching the expected signature for payload. Javascript, Express

I get an error whenever I try to construct the stripe webhook event: No signatures found matching the expected signature for payload. Are you passing the raw r

AWS Beanstalk -> "unsafe-perm=true" in .npmrc file for AWS Beanstalk not working

Hi there I am using AWS Beanstalk to deploy my Express app for the first time right and when I try to upload my Express app I get an error saying this: [ERROR]

Retrieve two foreign keys nodejs sequelize

I have a route and I want it to send two primary keys as foreign keys to my orderline table. I have three tables a customer, address and orderline table. an ord

Express.js backend not saving cookie to Nuxt.js frontend

I've built an authorization server with Express.js that works when testing with Postman where it saves the access and rotating refresh token as signed cookies.

Lower the variable without impact database variable

I would like to know if it is possible to lower the quantity without touching the database because here I would like the quantity variable to decrease but witho

NodeJS application doesn't upload files

I am developing a very simple JavaScript application with NodeJS. Simply upload files and view their content by paragraphs. The problem is that every time I upl

express-fileupload limithandler crushing the server on redirect

const express = require('express'); const app = express(); const fu = require('express-fileupload'); const fs = require('fs'); app.listen(3000, () => consol

Nextjs Routes are not working when deployed to Azure App Service Linux Instance

I wanted to deploy a nextjs app to Azure App Service with Linux instance. I followed the instructions here: https://developinjay.com/deploying-nextjs-app-to-azu

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', {

Express separate two routes that are only different by req.params

Hi I am trying to build a CRUD application to get items by name and location. Here are the two routes I have so far: app.get('/items/:name', function (req, res)

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"

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

Send file as buffer

const resp = await client.render(data); const Writable = require('stream').Writable; var buffer = []; const myWritable = new Writable({ write(chunk, encoding,

Node JS "Importing binding name 'default' cannot be resolved by star export entries" for HLS.js

Currently I have the following folder layouts in node JS and installed express js sdk-components --- HlsLoader.js node_modules --- hls.js --- s

express.json() is an unknown property

Typescript doesn't recognize the express.json() function although many tutorials state this code should compile as it is. Is there something I have done wrong?

AWS S3 Node.js SDK `NotImplemented` Error with Multer

I'm trying to set up an endpoint to upload files to an AWS S3 bucket. I am using Node.JS, Express, the AWS S3 SDK, and the Multer library. This is the code I'm

How "equals" in express-validator works?

I have to validate two fields are equals. In this case both passwords are the same. The problem it is that the "equals" from express-validator is not working. T

why my condition expression for attribute not exist fails in dynamodb

My DynamoDB table has a primary key as id. The same id will be used to query a record. Now I want to insert a record with id and originalURL as attributes, I wa

Mongoose ValidationError makes Express Server crashed

I have struggled with this problem for many days. Whenever I make an invalid POST request, it throws me an Error. Sounds good but when I cancel that request, th