mrf7/DJApp

Flatten Spotify Error object

Opened this issue · 0 comments

mrf7 commented

Spotify returns errors as below with the error body wrapped in an error object. This forces us to parse it as a SpotifyError with a SpotifyErrorBody as a property. Ideally we'd be able to flatten this resposnes into just the error body.

{
    "error" : {
     <error body>
    }
}