Skip to main content
The 2024 Developer Survey results are live! See the results

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.

-1 votes
0 answers
20 views

Uncaught SyntaxError: Unexpected token '<' - swagger

I have included swagger in express and deployed on vercel. Swagger is working fine locaally but giving Uncaught SyntaxError: Unexpected token '<' in browser console when i deploy app to vercel. ...
Aqeel Nasrullah's user avatar
-2 votes
0 answers
17 views

How to do client generation and scaffolding generation [closed]

On my previous project, every client microservice used an API interface to talk to another microservice. The client was generated for all microservices. The generated client translated the DTO request ...
Dean Hiller's user avatar
  • 19.8k
0 votes
0 answers
22 views

Delayed and incorrect updates from react context to backend

I am creating a food ordering application as project. Here, user can add items from a single restaurant only. If they tried adding items from another restaurant too, they will be shown an alert ...
Vidhi Mathur's user avatar
0 votes
0 answers
29 views

FFMPEG - Error during conversion: Input stream error: Status code: 403

const express = require('express'); const ytdl = require('ytdl-core'); const ffmpeg = require('fluent-ffmpeg'); const ffmpegStatic = require('ffmpeg-static'); const app = express(); app.use(express....
SOURABH UPRETI's user avatar
0 votes
0 answers
18 views

How to host socket.io server for free? [closed]

Here's a simple express/node socket.io server with simple frontend, the code is taken from socket.io documentation. Can anyone please tell me a good hosting service for hosting this website, with a ...
Nitin's user avatar
  • 1
0 votes
2 answers
31 views

Why would my parent route in express not pass down the req.params object to its child route?

I'm building an express application that has a users table in its database and a friends table. The point of the friends table is to be a many-to-many table that keeps track of friend requests between ...
Crablub's user avatar
  • 11
-2 votes
2 answers
33 views

Can i make a flexible function that can get * from different tables? [duplicate]

I am trying to create a function that can select from different tables in mysql My Function async function getOne(table, table_parameter, parameter) { const result = await pool.query( `SELECT * ...
Aleksei Yin's user avatar
0 votes
0 answers
23 views

Efficiently Remove and Replace Outdated Products in MongoDB with Envato API in Node.js

I have around 200,000 products in my MongoDB database. I need to write a script to remove products that are no longer available on Envato and replace them with new ones. I've written the following ...
Abdullah's user avatar
0 votes
0 answers
24 views

How can I import CSS modules from my Node server?

I have an Express server that renders React components to a string: server.get('/', (req, res) => { res.end(renderToStaticMarkup(<App />)); }); It works as long as App doesn't import CSS ...
Drahcir's user avatar
  • 11.9k
-3 votes
0 answers
30 views

Multiple User's are not being able to Connect to the WEBSITE [closed]

There is a problem in my backend that multiple users can't access the website at one's. If User1 login and a User2 arrives at the same time the 2nd User is seeing the interface of User1. So, What ...
Stiker's user avatar
  • 1
0 votes
1 answer
36 views

How to send several vars to client

I want to send to client many objects and one var, but i don't understand how to choose response that i want and create the var on client. Server code: var isAdmin = false; app.get('/main', async (req,...
PABLO _6612's user avatar
-3 votes
0 answers
19 views

How do i fetch data and display in MERN? [closed]

What are the steps to be followed? What are the packages that need to be installed? I am also willing to share my codes if needed. I tried using Axios and Cors. This is my JSX code. import { useEffect,...
Afaaf Hariri's user avatar
0 votes
0 answers
5 views

How to host a express js backend in vercel,i am getting error 404

I am trying to host an express js backend api on vercel Here its my project structure for the backend folder . I am trying to host the backend folder everytime it says me 404 error not found This is ...
Rudra Sankha Sinhamahapatra's user avatar
0 votes
0 answers
16 views

Express nodemailer custom headers not getting set in the email which is being sent to the reciever user

I have a backend application built with Express.js, and I'm using Nodemailer to send emails. I need to set custom headers in the emails so that I can later read my inbox and group those emails ...
Shubham More's user avatar
-2 votes
0 answers
17 views

Node js express Events app problem how to resolve this

I have a problem with an exercise where I need to create a list of events, using Node.js, express, socket.io and AXIOS to handle POST and GET requests. Unfortunately, the creation of the event list ...
user26435452's user avatar

15 30 50 per page