Comments (4)
Try latest version, should work. I fixed, seems still not working properly .
Can you explain bit more?
from legacy.
I running body-parser
example locally with some logging.
- It works as expected including destructuring.
[Object: null prototype]
- it's OK, but for now at least, this happens due ofquerystring
parse
function which does withObject
something, but it's works same as `Object.
Try re-run or create minimal reproducible repository to debug.
Thanks for reporting bugs
from legacy.
JSON application type is parsed correctly, when I send the request from Postman, so you can close this issue. But I am stuck with frontend https://stackoverflow.com/questions/60763165/axios-post-stalled-in-chrome.
from legacy.
It is CORS issue. How can I write OPTIONS handler with empty body? I tried this, but it did not help for chrome and it does not return anything to Postman until time out.
app.options('/v1/authorizeUser', async (req, res) => {
console.log("OPTIONS authorizeUser");
res.status(200);
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");
return res;
});
from legacy.
Related Issues (20)
- Using socket.io + nanoexpress on the same port? HOT 1
- 404 error sometimes HOT 1
- ws handler will parse invalid JSON strings without a try catch block causing server to crash on malformed inputs HOT 1
- UnhandledPromiseRejectionWarning and app.setValidationErrorHandler() HOT 4
- Warning! PRO and PRO (ESM) version will be moved to Private repository HOT 1
- Is handlebars supported in nanoexpress like expressjs? HOT 4
- User forum HOT 4
- Enable CORS HOT 5
- Method signature inconsistency - setNotFoundHandler HOT 3
- How to log everything HOT 7
- Options method does not return any data HOT 9
- How to use subscribe publish HOT 2
- websocket parameter wrong interface HOT 4
- Not found handler not activated HOT 5
- [Bug] Throw in async routes doesnt work HOT 4
- Question: No CommonJS for the simple version? HOT 6
- nanoexpress CJS - End of Life date
- Problems when using the examples that include an schema as a middleware HOT 1
- Websocket App publish crashes HOT 15
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 legacy.