RE: Regression: capybara-webkit causes apps to return error 500 on some AJAX requests #293

Closed
benkitzelman opened this Issue Mar 13, 2012 · 4 comments

Comments

Projects
None yet
4 participants
@benkitzelman

I was having the same issues listed on closed issue #228 (I can't reopen) - so I cloned the repo demonstrating the problem from https://github.com/jgonera/capybara-webkit-bug and played around.

The problem revolves around capybara-webkit throwing 500 server errors when setting request headers on client side (JS) ajax requests

It seems that when sending a JS ajax request, when you specify a full url ('http://localhost:3000/') instead of a relative one ('/'), then add a request header, 500's are being thrown and the test fails.

It makes no difference if your url is pointing to your app (localhost), or some other site (google).

This is a big issue as if you are trawling client side some public api which requires custom header (which is exactly what my app does) - tests fail erroneously

@tesserakt

This comment has been minimized.

Show comment Hide comment
@tesserakt

tesserakt Jun 27, 2012

Did you ever resolve this?

Did you ever resolve this?

@benkitzelman

This comment has been minimized.

Show comment Hide comment
@benkitzelman

benkitzelman Jun 28, 2012

Sort of - I changed to use phantomjs ;)

Sort of - I changed to use phantomjs ;)

@jferris

This comment has been minimized.

Show comment Hide comment
@jferris

jferris Nov 9, 2012

Owner

Does the spec in that repository fail for you guys? I just checked it out and it passes for me, both for the version of capybara-webkit bundled in the app and on the latest release.

Owner

jferris commented Nov 9, 2012

Does the spec in that repository fail for you guys? I just checked it out and it passes for me, both for the version of capybara-webkit bundled in the app and on the latest release.

@mhoran

This comment has been minimized.

Show comment Hide comment
@mhoran

mhoran Jan 13, 2013

Collaborator

Closing due to inactivity.

Collaborator

mhoran commented Jan 13, 2013

Closing due to inactivity.

@mhoran mhoran closed this Jan 13, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment