{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/android-sdk/issues/82","labels_url":"https://api.github.com/repos/spotify/android-sdk/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/spotify/android-sdk/issues/82/comments","events_url":"https://api.github.com/repos/spotify/android-sdk/issues/82/events","html_url":"https://github.com/spotify/android-sdk/issues/82","id":58813473,"number":82,"title":"Incomprehensible Retrofit error is camouflaging comprehensible Spotify search error","user":{"login":"chjan","id":69140,"avatar_url":"https://avatars.githubusercontent.com/u/69140?v=3","gravatar_id":"","url":"https://api.github.com/users/chjan","html_url":"https://github.com/chjan","followers_url":"https://api.github.com/users/chjan/followers","following_url":"https://api.github.com/users/chjan/following{/other_user}","gists_url":"https://api.github.com/users/chjan/gists{/gist_id}","starred_url":"https://api.github.com/users/chjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chjan/subscriptions","organizations_url":"https://api.github.com/users/chjan/orgs","repos_url":"https://api.github.com/users/chjan/repos","events_url":"https://api.github.com/users/chjan/events{/privacy}","received_events_url":"https://api.github.com/users/chjan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T22:07:40Z","updated_at":"2015-02-25T09:38:42Z","closed_at":"2015-02-25T09:38:42Z","body":"This is FYC, no need to comment unless you like to.\r\n\r\nWhen I due to code blunder send an empty search string to the api, it results in retroFit error \"bad request\", which is incomprehensible and requires debugging (at least on first encounter). RetroFit also sends the url causing the error, and when launching that url in a browser, a comprehensible Spotify (?) error message is shown: \"No such query\"\r\n\r\nThe combination of the url and its Spotify error message leads me directly to the cause of the error. It is suggested that the original error message (by far) is more pinpointing and helpful than the abstraction presented by Retrofit. If possible, pass the real cause along as a sub-error message or similar. "},"comment":{"url":"https://api.github.com/repos/spotify/android-sdk/issues/comments/75931282","html_url":"https://github.com/spotify/android-sdk/issues/82#issuecomment-75931282","issue_url":"https://api.github.com/repos/spotify/android-sdk/issues/82","id":75931282,"user":{"login":"kaaes","id":202548,"avatar_url":"https://avatars.githubusercontent.com/u/202548?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaes","html_url":"https://github.com/kaaes","followers_url":"https://api.github.com/users/kaaes/followers","following_url":"https://api.github.com/users/kaaes/following{/other_user}","gists_url":"https://api.github.com/users/kaaes/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaes/subscriptions","organizations_url":"https://api.github.com/users/kaaes/orgs","repos_url":"https://api.github.com/users/kaaes/repos","events_url":"https://api.github.com/users/kaaes/events{/privacy}","received_events_url":"https://api.github.com/users/kaaes/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T09:38:42Z","updated_at":"2015-02-25T09:38:42Z","body":"Thanks for the report. This is related to the API wrapper so I moved it to that project https://github.com/kaaes/spotify-web-api-android/issues/32"}}