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

net : ERR_CONNECTION_CLOSED

hi I have been facing a problem in chrome. I don't know if it is my code fault or the chrome fault. And the error isFailed to load resource: net::ERR_CONNECTION_CLOSEDmy QSTNURL isconst app =...

View Article


HTTP code for an error in processing a request

Let's say we have an HTTP request made by the client. The endpoint exists and is accessible by the client (this rules out 401, 403, 404 and 405). The request payload is valid (this rules out 400). The...

View Article


Express or Axios Error: socket hang up code: ECONNRESET

This is the first time I posted a question here, sorry if some data is missing.I'm trying to do some web scraping to get some info from a table.The page only responds with an index.php. When I use the...

View Article

Image source not found in broken links checker AngularJS

I need to improve my website's SEO. I am working on an AngularJs Multiple pages application and I have a problem that Angularjs render variables in HTML template we cannot see variable's value in the...

View Article

Proxy HTTPS with HTTP in Node.js express

I wrote an express app as an HTTP proxy, to intercept and analyse some of the network traffic. The parts of traffic my app is interested in are all HTTP, however I still want my app to proxy HTTPS so...

View Article


jest timeout error: Exceeded timeout of 5000 ms for a test

I have created a unit test case for controller and mocking the request, response and next while running the test case it's throw jest timeout error.Anyone help me resolve that...

View Article

Image may be NSFW.
Clik here to view.

Import a file after the Jest environment has been torn down

I'm making a simple API with Express and I'm trying to add tests with Jest but when I try to run the tests it displays the next error:ReferenceError: You are trying to `import` a file after the Jest...

View Article

Image may be NSFW.
Clik here to view.

keycloak-nodejs-connect: Could not obtain grant code: 400:Bad Request

Setup:I am trying to get the demo code for keycloak-connect library to run, but failing.Here's what I did:Download and start keycloak 4.7 standalone, set admin user and pwCreate a basic public...

View Article


Express Router Delete

I've written a simple "Grocery List" web application using the MERN stack (Mongo, Express, React, Node). The issue that I'm having is that my DELETE REST command is not firing unless I reload the page....

View Article


Modifying Express.js Request Object

In express.js, I would like to provide an additional attribute on the request object for each of my URI listeners. This would provide the protocol, hostname, and port number. For...

View Article

How do I keep a socket io ID while using changing html files?

I'm using express and node to host a server. I also have socket io where I'm trying to keep track of the user by saving their socket.id. However, I have two pages to the webapp, one to login and one...

View Article

Express Admin Panel Routes Not Working on cPanel with Passenger (React App...

Problem SummaryI have a Node.js monorepo with both an EJS-based admin panel and a React frontend. The app works perfectly on localhost, but when deployed to cPanel with Passenger, only the React app...

View Article

MongoDB - MongoError: connect ECONNREFUSED

I keep getting an error when trying to connect mongoDB. I know there are many questions similar to this one and I have checked all of them and haven't found a solution for my issue.Here is the exact...

View Article


Add custom headers to videojs player source

I have a backend api (using express) that handles a streaming video m3u8 file.http://localhost:3000/api/stream.m3u8This endpoint will only work with a proper user token....

View Article

Is there any way to monitor every response in Express.js?

I want to create a middleware function in express.js. which can monitor every requests and responses. I created a middleware but it can only monitor the requests, not the responses.function...

View Article


express req.connection.remoteAddress is sometimes undefined

I'm using express to receive and process various HTTP requests in my application. I need to have the client's remote IP address and I am obtaining it in the following way:function onPostRequest(req,...

View Article

How to use a custom express-validator?

I'm developing a register form and I'm using express-validator to validate fields but I'm having troubles in validate if email already exists.I did a select to check if the inserted email already...

View Article


'Access-Control-Allow-Origin' header in the response must not be the wildcard...

I am try to convert my electron app to full web. when I am running the app from my localhost I get this error:Failed to load https://agrt.herokuapp.com/login: Response to preflight request doesn't pass...

View Article

How to resolve CORS error in Node js and Express backend [closed]

I am building a web application using React on the frontend and Express.js on the backend. When I try to make a fetch request from my frontend to the backend API, I get a CORS blocked policy error in...

View Article

Testing express routes with JEST

I wanted to test my express API endpoints with JEST.Below is my Express API code.routs.ts// Get release notesroutes.get('/release-notes', (req, res) => { request.get({ url:...

View Article
Browsing index pages (9202 articles)


Latest Images