-
Notifications
You must be signed in to change notification settings - Fork 0
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
artist lookup inc=url-rels sometimes returns xml instead of json #241
Comments
Still happens with ktor (though we are using OkHttp engine). Should be handled with this. A retry or two by the http client will usually work is NoTransformationFoundException -> {
Timber.e(exception)
throw RecoverableNetworkException("Requested json but got xml")
} |
It's actually not handled because receiving XML is 200, so that block is not executed I removed the double application/json header. Maybe that might do something? |
Still sometimes get XML |
Checked with postman, and sometimes I would receive xml. So the issue isn't okhttp |
After adding |
This only started happening after we changed the initial lookup to include url-rels
The text was updated successfully, but these errors were encountered: