{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/web-api/issues/101","labels_url":"https://api.github.com/repos/spotify/web-api/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/spotify/web-api/issues/101/comments","events_url":"https://api.github.com/repos/spotify/web-api/issues/101/events","html_url":"https://github.com/spotify/web-api/issues/101","id":101031934,"number":101,"title":"500 Error Authorization","user":{"login":"sunuiyum","id":13111079,"avatar_url":"https://avatars.githubusercontent.com/u/13111079?v=3","gravatar_id":"","url":"https://api.github.com/users/sunuiyum","html_url":"https://github.com/sunuiyum","followers_url":"https://api.github.com/users/sunuiyum/followers","following_url":"https://api.github.com/users/sunuiyum/following{/other_user}","gists_url":"https://api.github.com/users/sunuiyum/gists{/gist_id}","starred_url":"https://api.github.com/users/sunuiyum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunuiyum/subscriptions","organizations_url":"https://api.github.com/users/sunuiyum/orgs","repos_url":"https://api.github.com/users/sunuiyum/repos","events_url":"https://api.github.com/users/sunuiyum/events{/privacy}","received_events_url":"https://api.github.com/users/sunuiyum/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-14T15:13:39Z","updated_at":"2015-08-17T07:10:40Z","closed_at":"2015-08-14T15:22:47Z","body":"I'm trying to get a token to authorize my web app using the spotipy Python library, and I'm getting thrown a 500 Error. \r\n\r\n```Error in event handler for (unknown): TypeError: Cannot read property 'user' of null\r\n    at Object.<anonymous> (chrome-extension://bmnlcjabgnpnenekpadlanbbkooimhnj/src/js/build/all.js:9:6697)\r\n    at k (chrome-extension://bmnlcjabgnpnenekpadlanbbkooimhnj/src/js/lib/jquery-1.8.1.min.js:2:16934)\r\n    at Object.l.fireWith (chrome-extension://bmnlcjabgnpnenekpadlanbbkooimhnj/src/js/lib/jquery-1.8.1.min.js:2:17721)\r\n    at Object.l.fire [as resolve] (chrome-extension://bmnlcjabgnpnenekpadlanbbkooimhnj/src/js/lib/jquery-1.8.1.min.js:2:17758)\r\n    at chrome-extension://bmnlcjabgnpnenekpadlanbbkooimhnj/src/js/build/all.js:1:1516\r\n    at Object.success (chrome-extension://bmnlcjabgnpnenekpadlanbbkooimhnj/forge/all.js:8751:4)\r\n    at Object.internal.priv.receive (chrome-extension://bmnlcjabgnpnenekpadlanbbkooimhnj/forge/all.js:8504:29)\r\n    at chrome-extension://bmnlcjabgnpnenekpadlanbbkooimhnj/forge/all.js:9809:16handler @ extensions::uncaught_exception_handler:8```\r\n\r\n```Failed to load resource: the server responded with a status of 500 (Internal Server Error)```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spotify/web-api/issues/comments/131702285","html_url":"https://github.com/spotify/web-api/issues/101#issuecomment-131702285","issue_url":"https://api.github.com/repos/spotify/web-api/issues/101","id":131702285,"user":{"login":"thelinmichael","id":714409,"avatar_url":"https://avatars.githubusercontent.com/u/714409?v=3","gravatar_id":"","url":"https://api.github.com/users/thelinmichael","html_url":"https://github.com/thelinmichael","followers_url":"https://api.github.com/users/thelinmichael/followers","following_url":"https://api.github.com/users/thelinmichael/following{/other_user}","gists_url":"https://api.github.com/users/thelinmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/thelinmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thelinmichael/subscriptions","organizations_url":"https://api.github.com/users/thelinmichael/orgs","repos_url":"https://api.github.com/users/thelinmichael/repos","events_url":"https://api.github.com/users/thelinmichael/events{/privacy}","received_events_url":"https://api.github.com/users/thelinmichael/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T07:10:40Z","updated_at":"2015-08-17T07:10:40Z","body":"Thanks for reporting this @sunuiyum! \r\n\r\nI see two issues here,\r\n\r\n- Retrieving a 500 server error when authenticated is obviously severe and should never happen.\r\n- The [Spotipy](https://github.com/plamere/spotipy) library should handle a server error better than this.\r\n\r\nThis issue tracker is appropriate to handle the first of these issues since Spotipy is just another client utilising the Web API. To be able to troubleshoot this issue it'd be very helpful if you could provide more information about the request that returned the server error. \r\n\r\nCan you reproduce it every time? If so, when does it occur?\r\n\r\nThanks again!"}}