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

Ruby 1.9.1 issue #7

Open
antage opened this issue May 31, 2009 · 3 comments
Open

Ruby 1.9.1 issue #7

antage opened this issue May 31, 2009 · 3 comments

Comments

@antage
Copy link

antage commented May 31, 2009

In ruby 1.9 rack-bug raises exception:

/!\ FAILSAFE /!\  2009-05-31 04:34:24 +0400
  Status: 500 Internal Server Error
  incompatible character encodings: UTF-8 and US-ASCII
    vendor/plugins/rack-bug/lib/rack/bug/toolbar.rb:136:in `sub!'
    vendor/plugins/rack-bug/lib/rack/bug/toolbar.rb:136:in `inject_toolbar'
    vendor/plugins/rack-bug/lib/rack/bug/toolbar.rb:79:in `dispatch'
    vendor/plugins/rack-bug/lib/rack/bug/toolbar.rb:57:in `call'

# debug output:
# full_body.encoding == UTF-8
# render.encoding == US-ASCII

Patch: antage@f73f719b92a7b070b55664895dff1a104da70985

@noodl
Copy link

noodl commented Apr 1, 2010

Antage, your patch link no longer works. Could you possibly repost it, or point to a repository which has it applied?

@antage
Copy link
Author

antage commented Apr 1, 2010

Try this - http://gist.github.com/352453

@noodl
Copy link

noodl commented Apr 2, 2010

Thanks, that fixes this bug. This one follows. I guess I'll try one of the many forked projects.

/!\ FAILSAFE /!\  2010-04-02 15:29:23 +0100
  Status: 500 Internal Server Error
  You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+
    /Users/noodl/Projects/footi/vendor/plugins/rack-bug/lib/rack/bug/toolbar.rb:125:in `inject_toolbar'

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