Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error message serialization #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dsbankov
Copy link

I guess musixmatch changed the error message response recently. An error message response currently looks like this:

{
	"message": {
		"header": {
			"status_code": 404,
			"execute_time": 0.0067391395568848
		},
		**_"body": []_**
	}
}

The "body" element was previously serialized as a string which caused an IllegalStateException to be thrown when an HTTP 404 status was returned (for example when we're trying to get a track with an inexisting ID).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant