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

ERROR: Symbol as array index #2

Open
bcarpenter opened this issue Sep 21, 2009 · 0 comments
Open

ERROR: Symbol as array index #2

bcarpenter opened this issue Sep 21, 2009 · 0 comments

Comments

@bcarpenter
Copy link

I get this error when I try to track a package. Seems like the library is trying to use an Array as a Hash or something like that.

?> fedex = Shippinglogic::FedEx.new(key, password, account, meter)
=> #nil, :production_url=>"https://gateway.fedex.com:443/xml", :test_url=>"https://gatewaybeta.fedex.com:443/xml"}, @meter="">
>>  tracking_details = fedex.track(:tracking_number => "000....000")
TypeError: Symbol as array index
    from /Users/bencarpenter/.gem/ruby/1.8/gems/shippinglogic-1.1.4/lib/shippinglogic/fedex/track.rb:89:in `[]'
    from /Users/bencarpenter/.gem/ruby/1.8/gems/shippinglogic-1.1.4/lib/shippinglogic/fedex/track.rb:89:in `initialize'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `collect'
    from /Users/bencarpenter/.gem/ruby/1.8/gems/shippinglogic-1.1.4/lib/shippinglogic/fedex/track.rb:87:in `each'
    from /Users/bencarpenter/.gem/ruby/1.8/gems/shippinglogic-1.1.4/lib/shippinglogic/fedex/track.rb:87:in `collect'
    from /Users/bencarpenter/.gem/ruby/1.8/gems/shippinglogic-1.1.4/lib/shippinglogic/fedex/track.rb:87:in `initialize'
    from /Users/bencarpenter/.gem/ruby/1.8/gems/shippinglogic-1.1.4/lib/shippinglogic/fedex/track.rb:112:in `new'
    from /Users/bencarpenter/.gem/ruby/1.8/gems/shippinglogic-1.1.4/lib/shippinglogic/fedex/track.rb:112:in `target'
    from /Users/bencarpenter/.gem/ruby/1.8/gems/shippinglogic-1.1.4/lib/shippinglogic/fedex/proxy.rb:17:in `method_missing'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb.rb:302:in `output_value'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb.rb:151:in `eval_input'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb.rb:263:in `signal_status'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb.rb:147:in `eval_input'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb.rb:146:in `eval_input'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb.rb:70:in `start'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb.rb:69:in `catch'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb.rb:69:in `start'
    from /usr/bin/irb:13

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

1 participant