dnsimple / dnsimple-ruby

The DNSimple API client for Ruby.
https://developer.dnsimple.com/
MIT License
187 stars 52 forks source link

Raising RequestError causes exception #29

Closed agius closed 9 years ago

agius commented 11 years ago

Getting the following in my code:

/app/vendor/bundle/ruby/2.0.0/gems/httparty-0.12.0/lib/httparty/response.rb:62:in `[]'
/app/vendor/bundle/ruby/2.0.0/gems/httparty-0.12.0/lib/httparty/response.rb:62:in `method_missing'
/app/vendor/bundle/ruby/2.0.0/gems/dnsimple-ruby-1.4.1/lib/dnsimple/error.rb:14:in `initialize'
/app/vendor/bundle/ruby/2.0.0/gems/dnsimple-ruby-1.4.1/lib/dnsimple/record.rb:70:in `new'
/app/vendor/bundle/ruby/2.0.0/gems/dnsimple-ruby-1.4.1/lib/dnsimple/record.rb:70:in `create'
/app/lib/dnsimple.rb:36:in `create_record'

This error means the RequestError doesn't get raised. Instead this weird access error gets created, so I never get to see what error the API returns. Any ideas?

weppos commented 9 years ago

This issue should be fixed in a more recent version. Moreover, it's definitely fixed in master.