Skip to content

Instantly share code, notes, and snippets.

@psykidellic
Created January 5, 2014 08:57
Show Gist options
  • Save psykidellic/8266025 to your computer and use it in GitHub Desktop.
Save psykidellic/8266025 to your computer and use it in GitHub Desktop.
Started POST "/api/v1/getAlbumsForArtist" for 127.0.0.1 at 2014-01-05 00:57:02 -0800
Processing by Api::V1::SearchesController#getAlbumsForArtist as JSON
Parameters: {"page"=>1, "id"=>"bleacher", "search"=>{"page"=>1, "id"=>"bleacher", "controller"=>"api/v1/searches", "action"=>"getAlbumsForArtist"}}
bleacher
curl -X GET 'http://localhost:9200/beammusic/album/_search?size=250&pretty' -d '{"query":{"query_string":{"query":"all_artists:bleacher*"}}}'
Album Load (0.1ms) SELECT "albums".* FROM "albums" WHERE "albums"."id" = ? LIMIT 1 [["id", "450"]]
Rendered notification_mailer/internal.html.haml (0.1ms)
Sent mail to [email protected] (1560ms)
Date: Sun, 05 Jan 2014 00:57:03 -0800
From: [email protected]
To: [email protected]
Message-ID: <[email protected]>
Subject: Internal exception on beamto.us
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Exception.message: undefined method `[]' for nil:NilClass
<br>
Rails env: development
Completed 500 Internal Server Error in 1851ms
NoMethodError (undefined method `[]' for nil:NilClass):
lib/providers/echonest/artist.rb:40:in `image'
lib/providers/echonest/artist.rb:49:in `to_hash'
app/controllers/api/v1/searches_controller.rb:95:in `getAlbumsForArtist'
Rendered /Users/riteshn/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.8ms)
Rendered /Users/riteshn/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
Rendered /Users/riteshn/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-3.2.2/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (23.9ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment