undefined method `each' for String #548

Closed
DriesS opened this Issue Apr 23, 2013 · 2 comments

2 participants

@DriesS

In my application there is an error launched when I try to access a page over https, the webpage is correctly working with http. The error I get is :

 undefined method `each' for #<String:0x00000009371f28>

The place where it fails is on the rack on this line ( https://github.com/rack/rack/blob/master/lib/rack/etag.rb#L58 ).

It seems that he can't handle the body that is passed. I inspected the body and it is a string with all the html code of my page in it. ( https://gist.github.com/DriesS/5443415 )

Any idea why this fails and why the body is not containing and array like it needs to be?
Here you see my traceroute, it isn't clear for me what cause the problem because I don't see any trace of my application in it.

https://gist.github.com/DriesS/5443388

@chneukirchen
Official Rack repositories member
@DriesS

@chneukirchen Thanks. The problem is that I don't know from where it is called because I can't see any trace of my application in the traceroute. So I don't know what to wrap in array and what is calling the digest_body function. And this only happen with https. Any idea from where it can come?

@juno juno referenced this issue in mattt/rack-heroku-no-such-app Jul 24, 2013
Merged

Avoid to raise error with Ruby 1.9+/2.0 #1

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