baucis icon indicating copy to clipboard operation
baucis copied to clipboard

Error [ERR_HTTP_TRAILER_INVALID]: Trailers are invalid with this transfer encoding

Open HernanGH opened this issue 6 years ago • 6 comments

Error [ERR_HTTP_TRAILER_INVALID]: Trailers are invalid with this transfer encoding at ServerResponse._storeHeader (_http_outgoing.js:424:11) at ServerResponse.writeHead (_http_server.js:256:8) at ServerResponse._implicitHeader (_http_server.js:184:8) at write_ (_http_outgoing.js:641:9) at ServerResponse.end (_http_outgoing.js:762:5) at write ([dir]/api-posgrados/node_modules/finalhandler/index.js:297:9) at send ([dir]/api-posgrados/node_modules/finalhandler/index.js:301:5) at Immediate.<anonymous> (/[dir]/api-posgrados/node_modules/finalhandler/index.js:133:5) at Immediate.<anonymous> (/[dir]/api-posgrados/node_modules/express/lib/router/index.js:635:15) at runCallback (timers.js:757:11) at tryOnImmediate (timers.js:717:5)

This error occurs with the latest buacis version when I run it with node v9.10 :(

HernanGH avatar Mar 28 '18 18:03 HernanGH

Do it works on a previous version of node? Could you share a minimal sample code to reproduce it?

pjmolina avatar Mar 28 '18 19:03 pjmolina

Yes, it do.

const baucis = require("baucis"); function buildBaucis() { Object.keys(models).forEach((key) => { if (Object.keys(decorators).indexOf(key) !== -1) { decorators[key](baucis.rest(key)); } else { baucis.rest(key); } }); return baucis(); }

HernanGH avatar Apr 04 '18 18:04 HernanGH

+1

  • Bug reproduced also with node v9.8.0
  • Works OK on v.8.0.0

pjmolina avatar Apr 09 '18 15:04 pjmolina

@wprl Has you made any progress on this? With Node v8 approaching EOL, this seems crucial.

swordfish444 avatar Oct 25 '19 14:10 swordfish444

@swordfish444 I've experienced this issue while running locally. Will take a look soon!

maxiejbe avatar Nov 04 '19 16:11 maxiejbe

@swordfish444 PR ready! https://github.com/wprl/baucis/pull/335.

maxiejbe avatar Nov 06 '19 12:11 maxiejbe