datacite / bolognese

Ruby gem and command-line utility for conversion of DOI metadata
MIT License
40 stars 14 forks source link

TypeError: String does not have #dig method #170

Open ashwinisukale opened 1 year ago

ashwinisukale commented 1 year ago

Investigate and fix

https://app.datadoghq.com/apm/error-tracking?issueId=33e4b0c8-68cf-11ee-87a5-da7ad0900002&refresh_mode=sliding&view=spans&from_ts=1699360383609&to_ts=1699965183609&live=true

I see 852 occurrences of this error on production since last week.

TypeError: String does not have #dig method
/home/app/webapp/vendor/bundle/ruby/2.6.0/gems/bolognese-1.11.5/lib/bolognese/readers/datacite_reader.rb:126:in `dig'
/home/app/webapp/vendor/bundle/ruby/2.6.0/gems/bolognese-1.11.5/lib/bolognese/readers/datacite_reader.rb:126:in `read_datacite'
/home/app/webapp/app/models/concerns/crosscitable.rb:53:in `parse_xml'