fullcontact / fullcontact-api-ruby

A Ruby wrapper for the FullContact API
MIT License
82 stars 84 forks source link

error for emails such as this one: alostengineer@users.noreply.github.com #61

Open radoslaw opened 6 years ago

radoslaw commented 6 years ago

Plugin works for many email addresses but there are several producing errors. Here is one example.

calling this: person = FullContact.person(email: 'alostengineer@users.noreply.github.com')

produces this: .rvm/gems/ruby-2.4.1/gems/fullcontact-0.18.0/lib/faraday/response/fullcontact_errors.rb:12:in on_complete': GET https://api.fullcontact.com/v2/person.json?apiKey=EPBLFrAaubnSB11Pe4T7W2ay6LoBfr9I&email=alostengineer%40users.noreply.github.com: 404 (FullContact::NotFound) from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday-0.11.0/lib/faraday/response.rb:9:inblock in call' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday-0.11.0/lib/faraday/response.rb:61:in on_complete' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday-0.11.0/lib/faraday/response.rb:8:incall' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday_middleware-0.12.2/lib/faraday_middleware/response_middleware.rb:31:in call' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday-0.11.0/lib/faraday/response.rb:8:incall' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday-0.11.0/lib/faraday/response.rb:8:in call' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday-0.11.0/lib/faraday/request/url_encoded.rb:15:incall' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday-0.11.0/lib/faraday/rack_builder.rb:139:in build_response' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday-0.11.0/lib/faraday/connection.rb:377:inrun_request' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/faraday-0.11.0/lib/faraday/connection.rb:140:in get' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/fullcontact-0.18.0/lib/fullcontact/request.rb:17:inrequest' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/fullcontact-0.18.0/lib/fullcontact/request.rb:6:in get' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/fullcontact-0.18.0/lib/fullcontact/client/person.rb:15:inperson' from /Users/rd/.rvm/gems/ruby-2.4.1/gems/fullcontact-0.18.0/lib/fullcontact.rb:23:in `method_missing'