-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
how can i get status code 204 on failure in retrofit 2 and empty body #2494
Comments
A 204 should not go to onFailure. Your converter and declared body type
should be prepared to handle this code should the server return it.
…On Sat, Sep 23, 2017 at 6:32 PM Casey Kulm ***@***.***> wrote:
Do you have a failing test case?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2494 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEEEdjvDWVqCDb42zeqZNhwbvrzGEVUks5slYb1gaJpZM4PhpHP>
.
|
Without a failing test or example it's impossible to know what's going on. |
A 204 should not go to onFailure. Your converter and declared body type I've got the same problem. OkHttpCall parseResponse
my converter
some callback
thinking about the following case |
If you have the same problem then perhaps you can write a failing test case for it? |
This issue has been sloved
…On Mon, Oct 30, 2017 at 9:46 AM, Jake Wharton ***@***.***> wrote:
Closed #2494 <#2494>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2494 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJ4nbJXEOMvg0UEloiMyh0npCbQ9nwPWks5sxU2OgaJpZM4PhpHP>
.
--
*Thanks & Regards.Umesh PatelAndroid DeveloperCell: +91(0)8375066078*
|
What kind of issue is this?
Question. This issue tracker is not the place for questions. If you want to ask how to do
something, or to understand why something isn't working the way you expect it to, use Stack
Overflow. https://stackoverflow.com/questions/tagged/retrofit
Bug report. If you’ve found a bug, spend the time to write a failing test. Bugs with tests
get fixed. Here’s an example: https://gist.github.com/swankjesse/6608b4713ad80988cdc9
Feature Request. Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
The text was updated successfully, but these errors were encountered: