view · edit · sidebar · attach · print · history

20121009-debug-swissregd-interaction-instant-search

<< | Index | >>


Summary

  • Updated extension to prevent Error related in remote server error (swissregd).
  • Create Instant drug chooser for interactions.

Commits

Index


Debug swissregd Job


Plugin: ODDB::SwissregPlugin
Error: NoMethodError
Message: undefined method `gsub' for nil:NilClass
Backtrace:
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/cgi/util.rb:7:in `escape'
(druby://localhost:10007) /var/www/oddb.org/src/util/http.rb:128:in
`block (2 levels) in post_body'
(druby://localhost:10007) /var/www/oddb.org/src/util/http.rb:128:in `collect'
(druby://localhost:10007) /var/www/oddb.org/src/util/http.rb:128:in
`block in post_body'
(druby://localhost:10007) /var/www/oddb.org/src/util/http.rb:127:in `collect'
(druby://localhost:10007) /var/www/oddb.org/src/util/http.rb:127:in `post_body'
(druby://localhost:10007) /var/www/oddb.org/src/util/http.rb:75:in `post'
(druby://localhost:10007)
/var/www/oddb.org/ext/swissreg/src/session.rb:80:in `post'
(druby://localhost:10007)
/var/www/oddb.org/ext/swissreg/src/session.rb:59:in `get_result_list'
(druby://localhost:10007)
/var/www/oddb.org/ext/swissreg/src/swissreg.rb:10:in `search'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1548:in
`perform_without_block'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1508:in `perform'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1586:in
`block (2 levels) in main_loop'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1582:in `loop'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1582:in
`block in main_loop'
/var/www/oddb.org/src/plugin/swissreg.rb:73:in `update_registrations'
/var/www/oddb.org/src/plugin/swissreg.rb:99:in `block in update_substances'
/var/www/oddb.org/src/plugin/swissreg.rb:94:in `each'
/var/www/oddb.org/src/plugin/swissreg.rb:94:in `update_substances'
/var/www/oddb.org/src/plugin/swissreg.rb:69:in `update_news'
/var/www/oddb.org/src/util/updater.rb:437:in `update_immediate'
/var/www/oddb.org/src/util/updater.rb:351:in `update_swissreg_news'

update_swissreg_news has problem.

$ be bin/admin 
ch.oddb> Updater.new(self).update_swissreg_news
-> 

in ext/swissregd/src/session.rb

  def get_result_list(substance)
    ...
     ["javax.faces.ViewState", view_state(response)],
    ...
  end
  ...
  def view_state(response)
    if match = /javax.faces.ViewState.*?value="([^"]+)"/u.match(response.body.force_encoding('utf-8'))
      match[1]
    end
  end
commit

Interaction-instant-chooser

commit
view · edit · sidebar · attach · print · history
Page last modified on October 09, 2012, at 04:48 PM