Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bibliotechy/f43cf8acc2b9b485056134dcdda6aed4 to your computer and use it in GitHub Desktop.
Save bibliotechy/f43cf8acc2b9b485056134dcdda6aed4 to your computer and use it in GitHub Desktop.
unicode normalize error trace
2018-07-13T15:32:56-04:00 ERROR Unexpected error on record id `991032082719703811/991032082719703811` at file position 1
while executing (to_field genre_facet at /home/travis/build/tulibraries/tul_cob/lib/traject/indexer_config.rb:156)
Exception: NoMethodError: undefined method `normalize' for UnicodeNormalize:Module
/home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/unicode_normalize.rb:41:in `unicode_normalize'
2018-07-13T15:32:56-04:00 FATAL Traject::CommandLine: Unexpected exception, terminating execution: #<NoMethodError: undefined method `normalize' for UnicodeNormalize:Module>
/home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/unicode_normalize.rb:41:in `unicode_normalize': undefined method `normalize' for UnicodeNormalize:Module (NoMethodError)
from /home/travis/build/tulibraries/tul_cob/lib/traject/macros/custom.rb:286:in `block (2 levels) in extract_genre'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/marc_extractor.rb:244:in `block in collect_matching_lines'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/marc_extractor.rb:229:in `block (2 levels) in each_matching_line'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/marc_extractor.rb:228:in `each'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/marc_extractor.rb:228:in `block in each_matching_line'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/marc_extractor.rb:226:in `each'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/marc_extractor.rb:226:in `each_matching_line'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/marc_extractor.rb:243:in `collect_matching_lines'
from /home/travis/build/tulibraries/tul_cob/lib/traject/macros/custom.rb:283:in `block in extract_genre'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/indexer/step.rb:142:in `execute'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/indexer.rb:346:in `block (2 levels) in map_to_context!'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/indexer.rb:367:in `log_mapping_errors'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/indexer.rb:345:in `block in map_to_context!'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/indexer.rb:339:in `each'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/indexer.rb:339:in `map_to_context!'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/indexer.rb:440:in `block (2 levels) in process'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/traject-2.3.4/lib/traject/thread_pool.rb:110:in `block in maybe_in_thread_pool'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
from /home/travis/build/tulibraries/tul_cob/vendor/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment