<div dir="ltr">Hello,<br><br>There is one type of requests that Varnish (using version 4.1.0) only works if i put return(pipe) for them on the vcl_recv. If i change it to return(pass) i receive:<br><br>-   VCL_call       BACKEND_FETCH<br>-   VCL_return     fetch<br>-   BackendOpen    18 boot.server_api1 10.10.140.206 4050 10.10.140.250 43725<br>-   Timestamp      Bereq: 1450191336.453558 0.000820 0.000820<br>-   Timestamp      Beresp: 1450191336.461059 0.008320 0.007500<br>-   BerespProtocol HTTP/1.1<br>-   BerespStatus   200<br>-   BerespReason   OK<br>-   BerespHeader   media-type: application/json;v=1<br>-   BerespHeader   content-type: application/json; charset=utf-8<br>-   BerespHeader   cache-control: no-cache<br>-   BerespHeader   content-length: 698<br>-   BerespHeader   trailer: server-authorization<br>-   BerespHeader   transfer-encoding: chunked<br>-   BerespHeader   accept-ranges: bytes<br>-   BerespHeader   Date: Tue, 15 Dec 2015 14:55:36 GMT<br>-   BerespHeader   Connection: keep-alive<br>-   BackendClose   18 boot.server_api1<br>-   Error          Body cannot be fetched<br>-   Timestamp      Error: 1450191336.461100 0.008361 0.000041<br>-   BerespProtocol HTTP/1.1<br>-   BerespStatus   503<br> <br><br>If i do the request directly to the backend, i get this response:<br><br>root@Reverse:/etc/varnish# curl -v -X 'GET' -H 'Authorization: Hawk id="xxx", ts="1450192889", nonce="J9wb_l", mac="HU+dyFe3PJQx7kEpQBUhDknUGQdqFPIlIoKokxxxxxx="' -H 'host: <a href="http://xxx.mydomain.com">xxx.mydomain.com</a>' -H 'User-agent: com.muzzley.stag/2.5.7-STAG (Android 4.4.2 ; WIKO GETAWAY)' -H 'content-type: application/json' '<a href="http://10.10.140.206:4050/profiles/d1921c94-a4a3-4cf1-ade8-16a3041238dc">http://10.10.140.206:4050/profiles/d1921c94-a4a3-4cf1-ade8-16a3041238dc</a>'<br>* Hostname was NOT found in DNS cache<br>*   Trying 10.10.140.206...<br>* Connected to 10.10.140.206 (10.10.140.206) port 4050 (#0)<br>> GET /profiles/d1921c94-a4a3-4cf1-ade8-16a3041238dc HTTP/1.1<br>> Accept: */*<br>> Authorization: Hawk id="xxx", ts="1450192889", nonce="J9wb_l", mac="HU+dyFe3PJQx7kEpQBUhDknUGQdqFPIlIoKokxxxxx="<br>> host: <a href="http://xxx.mydomain.com">xxx.mydomain.com</a><br>> User-agent: com.muzzley.stag/2.5.7-STAG (Android 4.4.2 ; WIKO GETAWAY)<br>> content-type: application/json<br>><br>< HTTP/1.1 200 OK<br>< media-type: application/json;v=1<br>< content-type: application/json; charset=utf-8<br>< cache-control: no-cache<br>< content-length: 698<br>< trailer: server-authorization<br>< transfer-encoding: chunked<br>< accept-ranges: bytes<br>< Date: Tue, 15 Dec 2015 15:21:52 GMT<br>< Connection: keep-alive<br><<br>* Connection #0 to host 10.10.140.206 left intact<br>{"id":"5669b89707955b9996cxxxxx","uuid":"d1921c94-a4a3-4cf1-ade8-16a3041xxxxx","kind":"device","name":"mymanagertest","provider":"teste","resourceUrl":"<a href="http://demo-manager.office.mydomain.com/channels">http://demo-manager.office.mydomain.com/channels</a>","authorizationUrl":"<a href="http://demo-manager.office.mydomain.com/authorization">http://demo-manager.office.mydomain.com/authorization</a>","subscriptionUrl":"<a href="http://demo-manager.office.mydomain.com/subscriptions">http://demo-manager.office.mydomain.com/subscriptions</a>","photoUrl":"<a href="http://demo-manager.office.mydomain.com/images/profile2.jpg">http://demo-manager.office.mydomain.com/images/profile2.jpg</a>","channelPhotoUrl":"<a href="http://mydomain.com/teste.jpg">http://mydomain.com/teste.jpg</a>","interface":"baa1766d-d1a2-440b-8ed7-af8296fxxxxx","requiredCapability":"discovery-webview","requiredCapabilityVersion":1,"accessList":[],"auth":{"inbound":{},"outbound":{}},"globalManagerAccess":false,"openOauthInBrowser":false}<br><br><br>I notice that the response arrives with the header "transfer-encoding: chunked", and i'm guessing this might be the problem. Do you have any clue what is happening, and how can i use return(pass) for these requests?<br><br>Thanks<br>Gonçalo Silva<br><br><br><br></div>