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.
express
38,404
questions with no upvoted or accepted answers
16
votes
2
answers
7k
views
Hostname/IP does not match certificate's altnames: Host: localhost. is not in the cert's altnames: DNS:*.herokuapp.com, DNS:herokuapp.com
I have an api created and hosted on Heroku. I have my web app running on localhost. I am using NextJS for my app. I am able to access all my apis hosted on Heroku via my web app which is running on ...
15
votes
1
answer
5k
views
Use Custom Backend for Authentication in Next.js Without next-auth: A Practical Approach
I am using Next.js 13 for development
and I have no experience with Server-Side Rendering (SSR).
what's my problem is
I have a custom backend API based on Express.js.
This backend service already ...
13
votes
0
answers
7k
views
500.1013 error when using iisnode and express
I have an express app running in my machine. I am even able to run it in production by using node server instead of issnode.
When trying to make it run in iisnode I'm getting the following error ...
12
votes
1
answer
2k
views
ExpressJS Middleware bodyParser has very poor performance
Few days ago we added NewRelic, APM to our Rest API, which is written in NodeJS and uses EXPRESS JS as a development framework.
Now we see a lot of users experience poor response times, because of ...
12
votes
2
answers
2k
views
React-native node.js showing Error: Multipart: Boundary not found while uploading image using react-native-image-picker
While Uploading image , It is showing Error: Multipart: Boundary not found on node js server console
here is my react native code
const createFormData = async (photo, body) => {
const data ...
12
votes
3
answers
3k
views
NodeJS redis connect session ID is regenerated when it should stay persisted
I tried to use the standard session persistance with Redis in NodeJS:
var express = require('express');
var RedisStore = require('connect-redis')(express);
var app = module.exports = express....
11
votes
0
answers
530
views
How to have cache to express-graphql?
In my nodejs application I use graphql with express-graphql.
I can't see any cache option that library provide. How should I do the cache for graphql requests? (I need to support get and post)
11
votes
0
answers
507
views
Express Gateway - Is data composition/aggregation possible?
I've been reading a lot but don't seem to find an answer to the question:
Is it possible to do data composition, for example from 3 microservices? => Exposing an endpoint with the aggregate data on ...
10
votes
0
answers
4k
views
How do I return all rows in GraphQL query?
Using:
NodeJS , Express, PostgreSQL, GraphQL
I can get results for one row:
oneTopic: {
type: TopicsType,
args: {
id: { type: GraphQLUUID },
},
resolve(parentValue, args) {
const ...
10
votes
0
answers
487
views
Layer.match is not a function
so i work at a startup building a backend web app using the nestJs framework (is slightly based on express) and typeorm for our Db . So we recently ran into an issue where the app literally crashes ...
10
votes
0
answers
3k
views
ExpressJS: Pipe request directly to another server without storing it in memory
In order to separate my frontend and backend code I moved the frontend(angular app) to a simple expressJS app. Backend is a much complex Grails app serving only the APIs.
To workaround the CORS(since ...
10
votes
2
answers
2k
views
How to successfully use express routing in electron project?
I am using ExpressJS in my Electron project. The routing with Express doesn't work as expected.
Here is how I created the routing (in the main process):
const express = require('express')
const ...
10
votes
2
answers
15k
views
Node.js and Express - BadRequestError: request aborted
I am doing a performance test on a node.js api i have created.
There is a POST endpoint that takes in an image as an input in base64. So the request payload is quite large, my test case image is ...
9
votes
0
answers
3k
views
Typeorm leftJoinAndSelect with subQuery
I have quite an issue here. I have three tables:
@Entity()
Vessel {
@OneToMany()
workOrders: WorkOrder[];
}
@Entity()
WorkOrder {
@ManyToOne()
vessel: Vessel;
@OneToOne()
order: Order;
}
...
9
votes
0
answers
4k
views
Nestjs / Axios HttpAgent({keepAlive: true}) causes memory leak
Hello i'm trying to figure out the problem that is cause this memory leak
memory usage of ecs task u can see thee increase of memory when we use keepAlive
the nestApp Runs inside a Express App ...