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

--proxy doesn't pass POST with x-www-form-urlencoded ContentType #925

Closed
arkadiyk opened this issue Jun 6, 2014 · 4 comments
Closed

--proxy doesn't pass POST with x-www-form-urlencoded ContentType #925

arkadiyk opened this issue Jun 6, 2014 · 4 comments

Comments

@arkadiyk
Copy link

arkadiyk commented Jun 6, 2014

I am using ember server with --proxy http://api-host parameter. Every time I try save data or authorize session the proxy connection times out.

Error: socket hang up
  at createHangUpError (http.js:1472:15)
  at Socket.socketOnEnd [as onend] (http.js:1568:23)
  at Socket.g (events.js:180:16)
  at Socket.EventEmitter.emit (events.js:117:20)
  at _stream_readable.js:919:16
  at process._tickDomainCallback (node.js:463:13)

The problem occurs only for POST x-www-form-urlencoded ContentType.
POST with form-data ContentType is working fine.

In 0.0.27 proxy is working perfectly fine.

@zigomir
Copy link
Contributor

zigomir commented Jun 6, 2014

Check #723 and #725

@twokul
Copy link
Contributor

twokul commented Jun 6, 2014

@arkadiyk tl;dr you will need to implement body-parser server side to make it work. Read this for more context.

@abuiles
Copy link
Member

abuiles commented Jun 7, 2014

@arkadiyk see issues linked above, for now comment app.use(bodyParser()); from your server/index.js

@abuiles abuiles closed this as completed Jun 7, 2014
@arkadiyk
Copy link
Author

@abuiles That did the trick. Thanks vm!

@trek trek mentioned this issue Jul 31, 2014
7 tasks
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

4 participants