view · edit · sidebar · attach · print · history




  • Fix error in SL-Update (XML)
  • Undefined method in virbac invoicer
  • Encoding::UndefinedConversionError in vetoquinol updater
  • Keep in Mind



Fix error in SL-Update (XML)

Got the following error mail

Plugin: ODDB::BsvXmlPlugin

Error: ODDB::Persistence::InvalidPathError
Message: :!registration,55829!!package,010. -> undefined Method ODDB::Registration::02()
@report: {:name_base=>"Ebixa", :name_descr=>"Tropfen 10 mg/g ", :swissmedic_no5_bag=>"55829", :deductible=>:deductible_g, :generic_type=>:unknown, :swissmedic_no5_oddb=>"55829", :swissmedic_no8_bag=>"55829014"}
/var/www/ `block in resolve'
/var/www/ `each'
/var/www/ `resolve'
/var/www/ `block in tag_end'
/var/www/ `each'
/var/www/ `tag_end'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/rexml/parsers/streamparser.rb:29:in `parse'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/rexml/document.rb:242:in `parse_stream'
/var/www/ `update_preparations'
/var/www/ `block (2 levels) in _update'
/var/www/ `get_input_stream'
/var/www/ `block in _update'
/var/www/ `block in each'
/var/www/ `each'
/var/www/ `each'
/var/www/ `each'
/var/www/ `block in foreach'
/var/www/ `open'
/var/www/ `foreach'
/var/www/ `_update'
/var/www/ `update'
/var/www/ `block in update_bsv'
/var/www/ `wrap_update'
/var/www/ `update_bsv'
/var/www/ `run'
jobs/import_daily:13:in `block in <module:Util>'
/var/www/ `run'
jobs/import_daily:12:in `<module:Util>'
jobs/import_daily:11:in `<module:ODDB>'
jobs/import_daily:10:in `<main>'

Running import_bsv_only on oddb-ci2 to try to catch the error after adding a binding.pry in bsv_xml.rb. The import ran without problem on oddb-ci2. Therefore dropping and reloading yesterday dumps from thinpower and starting import_daily.

After a long time the breakpoint got activated. Looks like we have problem dealing whith outdated packages as the package 14 for registration 55829 is not the in the swissmedic packages. I think I will simply skip the sl_entry. Restarting import_daily.

Pushed commit Rescue to avoid error in outdated pack

This did not fix the problem entirely. Therefore pushed another commit Rescue to avoid error in outdated pack (Limitation)

Undefined method in virbac invoicer

Got the following e-mail

undefined method `+' for nil:NilClass
/var/www/ `block in run'
/var/www/ `each'
/var/www/ `inject'
/var/www/ `run'
/var/www/ `invoice'
/var/www/ `block (2 levels) in run_invoicer'
/var/www/ `loop'
/var/www/ `block in run_invoicer'

Okay. This is another effect of the broken order. Total and order_id could not be calculated. Fixed with

Encoding::UndefinedConversionError in vetoquinol updater

"\xC4" from ASCII-8BIT to UTF-8
/var/www/ `encode'
/var/www/ `string'
/var/www/ `block in import_record'
/var/www/ `each'
/var/www/ `import_record'
/var/www/ `block in import'
/var/www/ `each'
/var/www/ `import'
/var/www/ `import'
/var/www/ `block in run'
/var/www/ `poll_message'
/var/www/ `block in poll_message'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/delegate.rb:341:in `each'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/delegate.rb:341:in `block in delegating_block'
/var/www/ `poll_message'
/var/www/ `block in poll'
/var/www/ `each'
/var/www/ `poll'
/var/www/ `block in poll_sources'
/var/www/ `block in load_sources'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/psych/deprecated.rb:32:in `each'
/usr/local/ruby-2.4.0/lib/ruby/2.4.0/psych/deprecated.rb:32:in `load_documents'
/var/www/ `load_sources'
/var/www/ `poll_sources'
/var/www/ `run'
/var/www/ `update'
/var/www/ `block (2 levels) in run_updater'
/var/www/ `loop'
/var/www/ `block in run_updater'

Should be fixed with Fix encoding problem

view · edit · sidebar · attach · print · history
Page last modified on June 02, 2017, at 12:53 PM