mwunsch / weary

A framework and DSL for building RESTful web service clients
MIT License
482 stars 23 forks source link

#<Rack::Lint::LintError: rack.input #<StringIO:0x007fcaa6b812f8> does not have ASCII-8BIT as its external encoding> #44

Closed manuelmeurer closed 10 years ago

manuelmeurer commented 10 years ago
require 'weary/client'

class MyApp::Client < Weary::Client
  domain '...'

  use Rack::Lint

  post :create_thing, '/things' do |resource|
    resource.required :api_key
  end
end
MyApp::Client.new.create_thing(api_key: '...').perform

causes:

#<Rack::Lint::LintError: rack.input #<StringIO:0x007fcaa6b812f8> does not have ASCII-8BIT as its external encoding>
manuelmeurer commented 10 years ago

Removing use Rack::Lint makes the error disappear and the request works.

mwunsch commented 10 years ago

What version of Ruby are you running?

manuelmeurer commented 10 years ago

ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]

manuelmeurer commented 10 years ago

Awesome, cheers! Could you release a new version as well?

mwunsch commented 10 years ago

I'd like to clean up a few more remaining issues and stabilize the build. Will cut a new release some time next week and stop testing against Ruby 1.8.7.

manuelmeurer commented 10 years ago

Alright great!

On Wed, Jan 15, 2014 at 4:45 PM, Mark Wunsch notifications@github.comwrote:

I'd like to clean up a few more remaining issues and stabilize the build. Will cut a new release some time next week and stop testing against Ruby 1.8.7.

— Reply to this email directly or view it on GitHubhttps://github.com/mwunsch/weary/issues/44#issuecomment-32373033 .