....
def get_object(self):
        ...
        some_response = requests.get(EXTERNAL_URL, auth=(X, Y))
        ...

The problem is that the action above seems to be blocked until my first 
request(that trigger the above) return a error, than the the action is done.


Logs:

(EXTERNAL_URL get) INFO 2016-08-29 19:56:25,434 connectionpool 25695 
140311730714368 Starting new HTTP connection (1): <external_url>

(MY API) [29/Aug/2016 19:56:57] "GET /api/v1/xyz/requisitions/21684/ 
HTTP/1.0" 200 278
- Broken pipe from ('127.0.0.1', 60526)

(EXTERNAL_URL return) DEBUG 2016-08-29 19:56:56,932 connectionpool 25695 
140311730714368 "GET <external_url> HTTP/1.1" 200 None


-----------------------------

Any idea?

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to