amazon-orders icon indicating copy to clipboard operation
amazon-orders copied to clipboard

fetch appears to fail

Open ak2k opened this issue 4 years ago • 0 comments

Appears to fail on first run:

$ bundle exec rake orders:fetch --trace ** Invoke orders:fetch (first_time) ** Invoke environment (first_time) ** Invoke dependencies (first_time) ** Execute dependencies NOTE: Gem.gunzip is deprecated; use Gem::Util.gunzip instead. It will be removed on or after 2018-12-01. Gem.gunzip called from /Library/Ruby/Gems/2.6.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/index.rb:5. ** Execute environment ** Execute establish_connection ** Execute orders:fetch Loading account settings ... Loading Amazon.com... Loading the login page.. rake aborted! NoMethodError: undefined method []' for nil:NilClass /Library/Ruby/Gems/2.6.0/gems/mechanize-2.7.5/lib/mechanize.rb:372:in click' /Users/akirby/Downloads/amazon-orders/amazon-orders/Rakefile:182:in block (3 levels) in <top (required)>' /Library/Ruby/Gems/2.6.0/gems/mechanize-2.7.5/lib/mechanize.rb:466:in get' /Users/akirby/Downloads/amazon-orders/amazon-orders/Rakefile:180:in block (2 levels) in <top (required)>' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/task.rb:251:in block in execute' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/task.rb:251:in each' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/task.rb:251:in execute' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/task.rb:195:in block in invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/monitor.rb:235:in mon_synchronize' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/task.rb:188:in invoke_with_call_chain' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/task.rb:181:in invoke' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/application.rb:160:in invoke_task' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/application.rb:116:in block (2 levels) in top_level' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/application.rb:116:in each' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/application.rb:116:in block in top_level' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/application.rb:125:in run_with_threads' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/application.rb:110:in top_level' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/application.rb:83:in block in run' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/application.rb:186:in standard_exception_handling' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/lib/rake/application.rb:80:in run' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.0/exe/rake:27:in <top (required)>' /usr/local/bin/rake:23:in load' /usr/local/bin/rake:23:in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in load' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in kernel_load' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/cli/exec.rb:28:in run' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/cli.rb:463:in exec' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/command.rb:27:in run' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor.rb:387:in dispatch' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/cli.rb:27:in dispatch' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/base.rb:466:in start' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/cli.rb:18:in start' /Library/Ruby/Gems/2.6.0/gems/bundler-1.17.2/exe/bundle:30:in block in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/bundler/friendly_errors.rb:124:in with_friendly_errors' /Library/Ruby/Gems/2.6.0/gems/bundler-1.17.2/exe/bundle:22:in <top (required)>' /usr/bin/bundle:23:in load' /usr/bin/bundle:23:in `

' Tasks: TOP => orders:fetch

ak2k avatar Dec 22 '21 19:12 ak2k