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

App crashes when I try to connect to it over browser #30

Open
arnoblalam opened this issue Jul 8, 2014 · 6 comments
Open

App crashes when I try to connect to it over browser #30

arnoblalam opened this issue Jul 8, 2014 · 6 comments

Comments

@arnoblalam
Copy link

Hi:

I followed the instructions on the github page. When I run "node app.js" I get the follwing:

➜ kibana-authentication-proxy git:(master) ✗ node app.js

Server starting...
Warning: No basic authentication presented
Warning: No Google OAuth2 presented
Warning: No CAS authentication presented
Server listening on 9201

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: write after end
    at writeAfterEnd (_stream_writable.js:133:12)
    at Gzip.Writable.write (_stream_writable.js:181:5)
    at ServerResponse.res.write (/Users/arnoblalam/tests/kibana-authentication-proxy/node_modules/express/node_modules/connect/node_modules/compression/index.js:86:18)
    at ServerResponse.res.end (/Users/arnoblalam/tests/kibana-authentication-proxy/node_modules/express/node_modules/connect/node_modules/express-session/index.js:237:21)
    at Gzip.<anonymous> (/Users/arnoblalam/tests/kibana-authentication-proxy/node_modules/express/node_modules/connect/node_modules/compression/index.js:177:13)
    at Gzip.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:919:16
    at process._tickCallback (node.js:419:13)

Could you please help troubleshoot this issue

@adamblanchard
Copy link

It looks like the express package has a new release which causes the above. Hardcode 'express' in packages.json to 3.12.0 and it should work.

@woolfie
Copy link

woolfie commented Jul 12, 2014

I get the same error and hardcoding 'express' to 3.12.0 in packages.json had no effect. Any other ideas?

@adamblanchard
Copy link

What version of express is shown when you run npm list? After hardcoding to 3.12.0 you will have to reinstall the package by running npm install (if you haven't already).

@woolfie
Copy link

woolfie commented Jul 12, 2014

Running npm install fixed it, thanks. It's running OK now.

@rosstimson
Copy link

I just encountered this bug too, hardcoding to 3.12.0 and running npm install again fixed it for me. Thanks a lot guys! Looking forward to this being fixed properly.

@Vineeth-Mohan
Copy link

Same for me too. Thanks for the solution.

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

5 participants