bodleian / oxford-explorer

The culmination of our previous R&D into the Oxford work. Now we have a Thing.
0 stars 2 forks source link

Page crash #62

Closed george08 closed 8 years ago

george08 commented 8 years ago

Something to do with ES/

http://gfs-oxford-explorer.herokuapp.com/things/mnh-entomology::ENT.LEPI3038-5

Elasticsearch::Transport::Transport::Errors::NotFound in ThingsController#show [404] {"_index":"dev","_type":"record","_id":"mnh-entomology::ENT","found":false}

Extracted source (around line #46): 44 45 46 47 48 49

def self.find(id) thing = ES_CLIENT.get index: 'dev', type: 'record', id: id self.new(thing['_source']) end

Rails.root: /Users/glo/Github/oxford-explorer

Application Trace | Framework Trace | Full Trace app/models/thing.rb:46:in find' app/controllers/things_controller.rb:4:inshow' Request

Parameters:

{"id"=>"mnh-entomology::ENT", "format"=>"LEPI3038-5"} Toggle session dump Toggle env dump Response

Headers:

None

infovore commented 8 years ago

This is, I think, a Rails issue - the id of the thing has a "." in it, and Rails has decided that there's a file extension.

Think I can fix this - gimme a tic.

infovore commented 8 years ago

Think this is now fixed.