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

Crash when recording => rawHeaders is undefined #185

Closed
max3163 opened this issue Jan 12, 2017 · 1 comment
Closed

Crash when recording => rawHeaders is undefined #185

max3163 opened this issue Jan 12, 2017 · 1 comment

Comments

@max3163
Copy link

max3163 commented Jan 12, 2017

I'm trying to POC your mocking solution for ur business and I can't record a WebService from ur provider without a crash.

Expected behaviour

Recording without crash a Web Service

Actual behaviour

Montebank Crash all the time with this error :

info: [http:9999 TEST] Open for business...
debug: [http:9999 TEST] 10.70.xx3.xxx:52898 ESTABLISHED
info: [http:9999 TEST] 10.70.xx.xx:52898 => POST /

/usr/lib/node_modules/mountebank/src/models/http/httpRequest.js:38
for (var i = 0; i < rawHeaders.length; i += 2) {
^
TypeError: Cannot read property 'length' of undefined
at headersFor (/usr/lib/node_modules/mountebank/src/models/http/httpRequest.js:38:35)
at transform (/usr/lib/node_modules/mountebank/src/models/http/httpRequest.js:53:18)
at IncomingMessage. (/usr/lib/node_modules/mountebank/src/models/http/httpRequest.js:69:54)
at IncomingMessage.emit (events.js:92:17)
at _stream_readable.js:944:16
at process._tickDomainCallback (node.js:502:13)

Software versions used

1.8 under Linux x86

@bbyars
Copy link
Owner

bbyars commented Jan 14, 2017

Thanks for the report. Can you tell me how you installed mountebank? This looks like the behavior on node v0.x, so if you have an old version of node and used npm to install it that would account for it.

@bbyars bbyars added this to the Awaiting Response milestone Feb 9, 2017
@bbyars bbyars closed this as completed May 20, 2017
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

2 participants