Skip to main content

Questions tagged [express]

Express.js is a minimal and flexible Node.js web application framework providing a robust set of features for building web applications.

0 votes
0 answers
34 views

database returns error 400 whenever I want to insert data into it

so this is my code, whenever I gonna insert data into my database it returns error 400 I don't know the reason, I did other crud operations and it was fine. import React from 'react'; import { Formik, ...
Sadegh Madhi's user avatar
0 votes
0 answers
12 views

Query MongoDB documents for a particular date range

I am trying to query documents based on particular date range. So I need all the documents where the createdDate is less than equal to current date and greater than equal to currentDate - 2. I am ...
Nikhil Bansal's user avatar
0 votes
1 answer
24 views

PDFKit library working in Express.js but not in Next.js API route

I'm working on a project where I need to generate PDFs using the pdfkit library. I've managed to get it working in an Express.js server, but I'm facing issues when trying to do the same in a Next.js ...
Chowdhury Tafsir Ahmed Siddiki's user avatar
0 votes
0 answers
13 views

MERN backend not working on other computers after deploying

I deployed my MERN stack app on Render. It's a flight management app and when I go to the website on my computer, I'm able to add new flight information and it displays it on the homepage. When I open ...
Dariel's user avatar
  • 1
0 votes
0 answers
11 views

Cannot resolve "express" in nx nestjs monorepo

I'm working on an Nx monorepo with a NestJS project, and I'm encountering an issue where it cannot resolve the "express" module. Here is my package.json: { "dependencies": { &...
Ayoub k's user avatar
  • 8,548
-1 votes
0 answers
31 views

CORS undefined problem in Node.js and Plesk

I have problem with CORS in my Node app on Plesk. On example.com/checkout.html is the form with PayPal checkout, after the payment goes through, it sends the form data to example.com/abc (Node - ...
Ondra's user avatar
  • 1
-3 votes
0 answers
21 views

"How to efficiently fetch data from multiple collections: multiple API calls vs. single API call which queries from multiple collections?" [closed]

I am making a youtube clone, I have multiple apis - videos api, likes api, comments api, subscription api etc I am making the page where we watch the video in youtube ie., video display page in ...
Vinay yadav's user avatar
3 votes
1 answer
39 views

Javascript - Express.js - send regularly status responses to the client

i want to implement a logic where my express backend regularly sends updates to the client on how far a process reached at the moment. For this i've created an example backend: import express from '...
LiiVion's user avatar
  • 336
0 votes
1 answer
33 views

Session Not Stored In Express

I am creating a React app with Express as the backend and using MongoStore to store the session data. When I log in to Cloud Mongo in Atlas, I can see a session being created and my variable is stored....
Arogya's user avatar
  • 1
0 votes
0 answers
20 views

ORM Sequelize model.upsert() is not a function

Version sequelize 6.37.3 I try to upsert() myModel but the mehtod returns: TypeError: model.upsert is not a function my_model.controller.ts ... class MyModelController { private model: any; ....
rammi22's user avatar
  • 393
-1 votes
0 answers
50 views

Mongoose doesn't create new document [closed]

I'm trying to create a new document. This is the function in the API router (using express.js) mongoose .connect('mongodb://localhost:27017/name') .then(() => { console.log('Connected to DB ...
idobarabi's user avatar
-1 votes
0 answers
20 views

Implementing notifications in angular 17 application with express + mongodb in backend [closed]

So I am working on a little project, my first pwa or coding project in general. Right now i need to implement real time notifications for admin users based on a property of the backend channging from &...
Mhyt0z's user avatar
  • 134
0 votes
0 answers
31 views

cannot set routes for my express aplication [closed]

so this is my server.js const express = require('express'); const bodyParser = require('body-parser'); const app = express(); const port = 3000; const sequelize = require('./db'); const userRoutes = ...
Sadegh Madhi's user avatar
1 vote
2 answers
46 views

Why is Redis not able to get data in nodejs?

This is my code for the get function of Redis. When sending the gameid, it's not working, but when using hardcoded values, it's working. I don't know what I am doing wrong. const redis = require("...
Nikhil Chopra's user avatar
0 votes
0 answers
11 views

No metadata for "User" was found using TypeORM, ExpressJS, Supertest and Testcontainers

I am trying to write integration tests for an expressjs application which uses TypeORM and a PostgreSQL database. The main application works fine without any issues with a main datasource, migrations ...
greazleay's user avatar

15 30 50 per page
1
2 3 4 5
6382