#36081: HttpResponse 204 (No Content) causes client code to hang if data is
present.
-------------------------------------+-------------------------------------
     Reporter:  Cleophus Robinson    |                    Owner:  Aditya
                                     |  Upadhye
         Type:  New feature          |                   Status:  assigned
    Component:  HTTP handling        |                  Version:  5.1
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
  204,HTTP,API,Timeout               |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Cleophus Robinson):

 Whoops, I was confused by the "next steps" message above - I'll know for
 next time.

 If I'm understanding correctly the original suggestion was for us to
 handle it at the project level? Or by project level do you mean another,
 more strict class within the django.http module? My team and I won't make
 this mistake again so the fix isn't so much for us. I'm more worried about
 the bizarreness of it as it will certainly trip up other developers. For a
 little more context, we were using it in our JSON API and returning "{}"
 for a 200 response. We changed this to a 204 later on and thought nothing
 of it - to our surprise.

 I do think this looks like additional handling / validation for 204. The
 lowest hanging fruit would be a warning in the documentation but it
 wouldn't be as effective. The issue is too innocuous for someone to
 suspect a 2xx status code as the root cause.

 In any case, thank you both for taking a look! Let me know if I can assist
 in any way.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36081#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019459bab69f-c329808f-0a83-4262-af49-4fc2538fd51a-000000%40eu-central-1.amazonses.com.

Reply via email to