Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: stream.push() after EOF #30

Open
wondertrap opened this issue Jun 3, 2019 · 0 comments
Open

Error: stream.push() after EOF #30

wondertrap opened this issue Jun 3, 2019 · 0 comments

Comments

@wondertrap
Copy link

Hi !
we have an issue with a post request to the avs cloud.
When we post the the first request with an outdated token we receive an 403 without error what is ok.

But when we send shortly after this a next request with the same outdated token we receive a 403 AND an unhandled error.
Sometimes also fails the first invalid request.
But the point is the unhandled error which crash our application.

// without error
WARN: [Http2Wrapper] sendMessage::start

DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST:: [ 'finish', 'response', 'error', 'socket' ]
DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST socket event
DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST finish event::resolve
DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST response event:: [ 'end', 'prefinish', 'unpipe', 'drain', 'error', 'close', 'finish' ]
DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST response event::statusCode:403

DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE data event:: chunk Unable to authenticate the request. Please provide a valid authorization token.
DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE prefinish event
DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE unpipe event
DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE finish event
DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE end event: statusCode:403

WARN: [Http2Wrapper] sendMessage::end with result { statusCode: 403 }

// SAME code with error
WARN: [Http2Wrapper] sendMessage::start

DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST:: [ 'finish', 'response', 'error', 'socket' ]
DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST socket event
DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST finish event::resolve
DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST response event:: [ 'end', 'prefinish', 'unpipe', 'drain', 'error', 'close', 'finish' ]
DEBUG: [Http2Wrapper] sendMessage::R-1::REQUEST response event::statusCode:403

DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE data event:: chunk Unable to authenticate the request. Please provide a valid authorization token.
DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE prefinish event
DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE unpipe event
DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE finish event
DEBUG: [Http2Wrapper] sendMessage::R-1::RESPONSE end event: statusCode:403

WARN: [Http2Wrapper] sendMessage::end with result { statusCode: 403 }
Error: stream.push() after EOF
at readableAddChunk (_stream_readable.js:240:30)
at Connection.Readable.push (_stream_readable.js:208:10)
at Connection._parentPush (D:\Work2018\vw.devel\iav.mib3.vw.alexa\addons\webapps\background\node_modules\http2.js\lib\protocol\flow.js:245:32)
at Connection._push (D:\Work2018\vw.devel\iav.mib3.vw.alexa\addons\webapps\background\node_modules\http2.js\lib\protocol\flow.js:257:17)
at Connection.push (D:\Work2018\vw.devel\iav.mib3.vw.alexa\addons\webapps\background\node_modules\http2.js\lib\protocol\flow.js:288:23)
at Connection._restoreWindow (D:\Work2018\vw.devel\iav.mib3.vw.alexa\addons\webapps\background\node_modules\http2.js\lib\protocol\flow.js:117:10)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant