Comments (2)
add
res.onAborted(() => {
return false;
});
from nanoexpress.
@Najsar unfortunately the error persists
import nanoexpress from 'nanoexpress';
const app = nanoexpress();
app
.get('/test', async (req, res) => {
req.onAborted(() => false);
res.onAborted(() => false);
await new Promise(resolve => setTimeout(() => resolve(), 5000));
return res.send('success');
});
app.listen(3000);
or
import nanoexpress from 'nanoexpress';
const app = nanoexpress();
app
.get('/test', async (req, res) => {
req.onAborted(() => res.send('error'));
res.onAborted(() => res.send('error'));
await new Promise(resolve => setTimeout(() => resolve(), 5000));
return res.send('success');
});
app.listen(3000);
not works
from nanoexpress.
Related Issues (20)
- Needs a better structure HOT 4
- "bug" in the loose sense of the word: the FAQ link in the README.md is the wrong link HOT 2
- NanoExpress can't write remove headers HOT 12
- Is a nice pice of code but you can't sell it HOT 1
- Response and request .pipe() method seem bugged HOT 3
- issue with nanoexpress in middleware HOT 1
- Allow getting IP address of machine accessing the server HOT 2
- req.body is undefined if request has large body HOT 6
- Getting Buffer in request.body HOT 1
- can I use express middlewares in nanoexpress for example helmet ? HOT 1
- Cut a new release with uwebsockets.js dependency HOT 6
- Invalid access of discarded (invalid, deleted) uWS.HttpResponse/SSLHttpResponse. HOT 3
- bug route HOT 3
- v5.2.3 includes "semantic-release" in dependencies HOT 3
- The automated release is failing 🚨 HOT 2
- The automated release is failing 🚨
- The automated release is failing 🚨
- Nginx Error NanoExpress Server HOT 1
- Incompatible node LATEST - This version of uWS.js supports only Node.js LTS versions 16, 18 and 20 on (glibc) Li HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanoexpress.