Quantcast
Channel: Active questions tagged express - Stack Overflow
Browsing index pages (9173 articles)

I am having problem using http-proxy-middleware

I have two servers running in my backend, because of that I have to use the http-proxy-middleware package but I am encountering some problems.This is my code in the frontend which is running on...

View Article


Class attributes not updating [node.js - express ]

I have some troubles with a .js Object's attribute which is not updating when I ask it to.I'm new in the JavaScript world, so I hope my issue won't be tricky.First of all, this is a part of my Node...

View Article


Why and how to put secrets in environment variables in Node.js?

I'm relatively new to Node.js and Express and I was following a guide on adding authentication using JWT to my site found here: Medium. I'm confused by one point of this guide, about using secrets,...

View Article

https.request() is giving Error: connect ECONREFUSED 127.0.0.1:443

Hello there,I'm at my wits end I'm struggling I would like to know where I'm going wrongI can't seem to get past this error connect ECONNREFUSED 127.0.0.1:443 something tells me it's something small...

View Article

how to actually use the data requested using discord oauth2

I am not exactly sure how to go about using/accessing the data requested from a discord oauth2 authentication. I have requested to access the guilds the user is in and the username and avatar of the...

View Article


How to configure refresh token with express and react

I am trying to configure a refresh token with cookies.In the backend I have two APIs, login and refresh.The login is working but if I go to the cookies in the browser I don't see any cookie with the...

View Article

Passportjs with MySQL in NodeJS

Hi everyone i try to connect to a MySQL database to authenticate the user through passport.js, I do not know what's wrong in my source code. When I gave correct or wrong user and password information...

View Article

Image may be NSFW.
Clik here to view.

NPM commands not working, exits with error code 127 on installing anything

I'm making an express app on my windows machine and everything was working fine until yesterday.But today no npm command of mine is working.npm install results in the following:npm start results...

View Article


How to delete user profile node.js express

Beginner here. I have created a userschema in mongoDB and maderegister and log in api, Here I can't figure out how to delete a user profile itself. I ve been hovering over the resources for long time,...

View Article


Image may be NSFW.
Clik here to view.

Nest.js sending custom response to client from an Exception

I'm working on a project using Nest.js as a backend framework for APIs, and Nuxt.js for clients.Everything is working fine, but when I try to throw an error in a service that is injected into the...

View Article

Deploying to vercel

Hello i'm having issues deploying my website/app to vercel. It's a node/express backend and a create-react-app front end.I should start by saying that localy everything works perfectly.As for...

View Article

Image may be NSFW.
Clik here to view.

Running the node-express app live in render.com with query throws internal...

I'm trying to run a route live with query using nodejs express app in render.com. All other routes related to the crud operations are getting executed except the search filter route url with the...

View Article

Does express middleware app.use(path, cb) ignore the rest part of the URL...

Express middleware: app.use("/api/food", cb); where cb("/get", cb)Targeted path end point: /api/food/getDoes Express match only the /api/food prefix, ignore the remaining part of the path (/get), and...

View Article


How can I retrieve the text from my search bar and use it in my event...

I'm making a website that displays restaurant in a specific area. The website has a search function where the user can search for a restaurant name and the website will display it. E.G, user input is...

View Article

How to solve : Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they...

I have a node/express server code asindex.jsconst express = require("express");const Room = require("./models/room");const roomRouter = require("./routes/room");require("./models/db");const cors =...

View Article


How can I scan an S3-compatible object storage file with VirusTotal API using...

I am trying to scan an image for viruses using the VirusTotal API.The image is stored in an S3-compatible object storage (Backblaze B2), and I am using the AWS SDK for JavaScript to retrieve the...

View Article

Image may be NSFW.
Clik here to view.

typescript error - cannot find name 'process'

I am setting up a new project with express+ typescript and facing typescript error - cann't find name 'processs'package.json"dependencies": {"express": "^4.16.4","nodemon": "^1.18.7","tsc":...

View Article


SockJS and STOMP.js in Express and React [closed]

I have a simple chat application using Spring Boot for the back-end and React for the front-end.This is my React code (unnecessary details omitted):import SockJS from 'sockjs-client';import { Stomp }...

View Article

Express - Session mismatch, user ends up on other user

Have a major problem that user sometimes ends up on wrong user.Have the following setup in app.js. var session = require('express-session'); var RedisStore = require('connect-redis')(session); var...

View Article

Why I can't import .ts file using express and typescript [closed]

I am tryng to import a controller with .ts extension but i am having trouble.I exported with export const registerWhen i import the controller with .ts extension i am getting an error.I imported the...

View Article
Browsing index pages (9173 articles)


Latest Images