Skip to content

Instantly share code, notes, and snippets.

@dwillis
Created July 18, 2017 14:33
Show Gist options
  • Save dwillis/82a38bd585d3e2fd188539a440079189 to your computer and use it in GitHub Desktop.
Save dwillis/82a38bd585d3e2fd188539a440079189 to your computer and use it in GitHub Desktop.
Updating from bulk: https://www.gpo.gov/fdsys/bulkdata/BILLSTATUS/115/s/BILLSTATUS-115s1570.xml
/web/app/models/house_vote.rb:339: warning: key :description is duplicated and overwritten on line 344
** [Bugsnag] No API key configured, couldn't notify
rake aborted!
Elasticsearch::Transport::Transport::Errors::NotFound: [404] {"error":"RemoteTransportException[[Rawhide Kid][inet[/x.x.x.x:y]][indices:data/write/update]]; nested: DocumentMissingException[[congress-bills-2016][4] [bill][253115]: document missing]; ","status":404}
/web/vendor/bundle/ruby/2.3.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:201:in `__raise_transport_error'
/web/vendor/bundle/ruby/2.3.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/base.rb:312:in `perform_request'
/web/vendor/bundle/ruby/2.3.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'
/web/vendor/bundle/ruby/2.3.0/gems/elasticsearch-transport-1.1.2/lib/elasticsearch/transport/client.rb:128:in `perform_request'
/web/vendor/bundle/ruby/2.3.0/gems/elasticsearch-api-1.1.2/lib/elasticsearch/api/actions/update.rb:100:in `update'
/web/vendor/bundle/ruby/2.3.0/gems/elasticsearch-model-0.1.9/lib/elasticsearch/model/indexing.rb:397:in `update_document'
/web/lib/elasticsearch_callbacks_that_can_fail.rb:25:in `block (2 levels) in included'
/web/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:446:in `instance_exec'
/web/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:446:in `block in make_lambda'
/web/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:253:in `block in conditional'
/web/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:506:in `block in call'
/web/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:506:in `each'
/web/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:506:in `call'
/web/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/web/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:778:in `_run_commit_callbacks'
/web/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/transactions.rb:314:in `committed!'
/web/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/transaction.rb:89:in `commit_records'
/web/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/transaction.rb:153:in `commit'
/web/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/transaction.rb:175:in `commit_transaction'
/web/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `within_new_transaction'
/web/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/web/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/transactions.rb:220:in `transaction'
/web/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.5/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
/web/vendor/bundle/ruby/2.3.0/gems/protected_attributes-1.1.4/lib/active_record/mass_assignment_security/persistence.rb:63:in `update'
/web/app/models/bill.rb:704:in `block in update_active'
/web/app/models/bill.rb:698:in `each'
/web/app/models/bill.rb:698:in `update_active'
/web/app/models/bill_action.rb:47:in `load_from_bulk'
/web/app/models/bill.rb:630:in `update_from_bulk'
/web/lib/tasks/bills.rake:15:in `block (2 levels) in <top (required)>'
/web/vendor/bundle/ruby/2.3.0/gems/bugsnag-5.3.3/lib/bugsnag/rake.rb:12:in `execute_with_bugsnag'
/web/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => load:bills
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment