koajs / koa

Expressive middleware for node.js using ES2017 async functions
https://koajs.com
MIT License
35.11k stars 3.22k forks source link

[fix] DESCRIPTIVE TITLE #1742

Closed iamgabrielsoft closed 1 year ago

iamgabrielsoft commented 1 year ago

Describe the bug

Koa-body is failing to parse the context request from the client I sense a bug i changed to use the latest version of koa-bodyparser and its worked

Node.js version: NODE 16.15.0

OS version: Linux - Ubuntu distro Description:

const app = new Koa();
const router = new KoaRouter();
const server = http.createServer(app.callback()); 

app.use(helmet());
app.use(KoaBodyParser());
app.use(mount("/api", api));
app.use(mount("/auth", auth));
app.use(router.routes());

//catch errors in one place, automatically set status and response headers
onerror(app); 
zacanger commented 1 year ago

This should probably be opened on the middleware repo:

3imed-jaberi commented 1 year ago

@iamgabrielsoft this issue should be reported to @koa/body repo.