Easyposy-ruby gem 3.10 - 'no implicit conversion of Symbol into Integer' error when creating address.
Closed this issue · 1 comments
ccasabona commented
After installing v 3.1.0, requests to create an address return 'no implicit conversion of Symbol into Integer'. Taking the boilerplate code form the easypost docs,
address = EasyPost::Address.create(
street1: "417 MONTGOMERY ST",
street2: "FLOOR 5",
city: "SAN FRANCISCO",
state: "CA",
zip: "94104",
country: "US",
company: "EasyPost",
phone: "415-123-4567"
)
The request returns:
{:status=>"no implicit conversion of Symbol into Integer"}
Reverting to 3.0.1 works as expected.
Rails 6.0.3.2
Ruby 2.7.1
ccasabona commented
From EasyPost-irb, here is the error listing:
>> EasyPost::Address.create(verify: ["delivery"], street1: "417 montgomery streat", street2: "FL 5", city: "SAN FRANCISCO",state: "CA",zip: "94104",country: "US",)
Traceback (most recent call last):
9: from /Users/charlie/.rvm/rubies/ruby-2.7.1/bin/irb:23:in `<main>'
8: from /Users/charlie/.rvm/rubies/ruby-2.7.1/bin/irb:23:in `load'
7: from /Users/charlie/.rvm/rubies/ruby-2.7.1/lib/ruby/gems/2.7.0/gems/irb-1.2.3/exe/irb:11:in `<top (required)>'
6: from (irb):2
5: from (irb):3:in `rescue in irb_binding'
4: from /Users/charlie/.rvm/gems/ruby-2.7.1@ruby27rails60/gems/easypost-3.1.0/lib/easypost/address.rb:21:in `create'
3: from /Users/charlie/.rvm/gems/ruby-2.7.1@ruby27rails60/gems/easypost-3.1.0/lib/easypost.rb:115:in `make_request'
2: from /Users/charlie/.rvm/gems/ruby-2.7.1@ruby27rails60/gems/easypost-3.1.0/lib/easypost.rb:80:in `make_client'
1: from /Users/charlie/.rvm/gems/ruby-2.7.1@ruby27rails60/gems/easypost-3.1.0/lib/easypost.rb:80:in `[]'
TypeError (no implicit conversion of Symbol into Integer)