{"action":"created","issue":{"url":"https://api.github.com/repos/balvig/spyke/issues/14","labels_url":"https://api.github.com/repos/balvig/spyke/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/balvig/spyke/issues/14/comments","events_url":"https://api.github.com/repos/balvig/spyke/issues/14/events","html_url":"https://github.com/balvig/spyke/issues/14","id":57344699,"number":14,"title":"How to handle errors in a spyke relation","user":{"login":"thiagocifani","id":75444,"avatar_url":"https://avatars.githubusercontent.com/u/75444?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagocifani","html_url":"https://github.com/thiagocifani","followers_url":"https://api.github.com/users/thiagocifani/followers","following_url":"https://api.github.com/users/thiagocifani/following{/other_user}","gists_url":"https://api.github.com/users/thiagocifani/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagocifani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagocifani/subscriptions","organizations_url":"https://api.github.com/users/thiagocifani/orgs","repos_url":"https://api.github.com/users/thiagocifani/repos","events_url":"https://api.github.com/users/thiagocifani/events{/privacy}","received_events_url":"https://api.github.com/users/thiagocifani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-11T17:02:51Z","updated_at":"2015-02-12T11:03:06Z","closed_at":null,"body":"I dont know for sure, but It seems spyke does not delegate the method errors in relation.rb. I think that is the reason I am unable to access Spyke::Relation.errors in my environment. This is happening, because I have a authorization policy where I need to pass some token to my api, and when I dont, it retuns a error in my index action, but Spyke is not getting this in errors method, actually, below follows its messages. BTW, I need to know if it is possible to use some default middleware to handle with authentication, something like what it is describe in HER readme? is it the same?\r\n\r\n```ruby\r\nNoMethodError: undefined method `errors' for #<Spyke::Relation:0x000000024dc860>\r\nfrom /home/thiagocifani/.rvm/gems/ruby-2.1.2@sigvia/gems/spyke-1.8.3/lib/spyke/relation.rb:48:in `method_missing'\r\n```"},"comment":{"url":"https://api.github.com/repos/balvig/spyke/issues/comments/74053395","html_url":"https://github.com/balvig/spyke/issues/14#issuecomment-74053395","issue_url":"https://api.github.com/repos/balvig/spyke/issues/14","id":74053395,"user":{"login":"balvig","id":104138,"avatar_url":"https://avatars.githubusercontent.com/u/104138?v=3","gravatar_id":"","url":"https://api.github.com/users/balvig","html_url":"https://github.com/balvig","followers_url":"https://api.github.com/users/balvig/followers","following_url":"https://api.github.com/users/balvig/following{/other_user}","gists_url":"https://api.github.com/users/balvig/gists{/gist_id}","starred_url":"https://api.github.com/users/balvig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balvig/subscriptions","organizations_url":"https://api.github.com/users/balvig/orgs","repos_url":"https://api.github.com/users/balvig/repos","events_url":"https://api.github.com/users/balvig/events{/privacy}","received_events_url":"https://api.github.com/users/balvig/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T11:03:06Z","updated_at":"2015-02-12T11:03:06Z","body":"Could you show what the code that causes the error looks like, and what the errors returned looks like?\r\nRe authorization, like Her, Spyke uses Faraday so yes you can do all the same things :smile: "}}