Skip to content
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

EOFException using NetHttpTransport on HEAD request with gzip encoding #169

wonderfly opened this issue Jan 9, 2015 · 1 comment


Copy link

commented Jan 9, 2015

From on November 26, 2012 12:37:44

Version of google-http-java-client (e.g. 1.5.0-beta)? 1.12.0-beta Java environment (e.g. Java 6, Android 2.3, App Engine)? All Describe the problem. Make a HEAD request using NetHttpTransport to gzip-encoded content and it will result in an EOFException.

Here's the log output and stack trace in a sample I've written:

CONFIG: -------------- REQUEST --------------
HEAD Accept-Encoding: gzip
User-Agent: Google-CalendarSample/1.0 Google-HTTP-Java-Client/1.12.0-beta (gzip)

Nov 26, 2012 3:31:50 PM execute
CONFIG: curl -v --compressed -X HEAD -H 'Accept-Encoding: gzip' -H 'Authorization: ' -H 'User-Agent: Google-CalendarSample/1.0 Google-HTTP-Java-Client/1.12.0-beta (gzip)' -- Nov 26, 2012 3:31:52 PM
CONFIG: -------------- RESPONSE --------------
HTTP/1.1 200 OK
ETag: "NybCyMgjkLQM6Il-p8A5652MtaE/E86055QdXW578YkMcayX-pGgswY"
Content-Length: 1071
Expires: Fri, 01 Jan 1990 00:00:00 GMT
X-Google-Apiary-Auth-User: 866721763087
X-Google-GFE-Service-Trace: apiserving
X-XSS-Protection: 1; mode=block
Server: GSE
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Google-DOS-Service-Trace: apiserving
X-Google-GFE-Response-Code-Details-Trace: response_code_set_by_backend
Date: Mon, 26 Nov 2012 20:31:52 GMT
X-Google-GFE-Request-Trace: qekt19:443,/bns/yn/borg/yn/bns/apiserving/prod_api_frontend.server/4,qekt19:443
X-Google-Apiary-Auth-Expires: 1353962210000
X-Google-Apiary-Auth-Scopes: X-Google-ServerType: apiserving
Content-Encoding: gzip
X-Google-Backends: yhia77:9854,/bns/yn/borg/yn/bns/apiserving/prod_api_frontend.server/4,qekt19:443
X-Google-Service: apiserving
Content-Type: application/json; charset=UTF-8
at How would you expect it to be fixed? It should behave the same as for ApacheHttpTransport and not throw an EOFException and treat the content as empty.

Original issue:


This comment has been minimized.

Copy link
Contributor Author

commented Jan 9, 2015

From on December 11, 2012 05:24:03

Status: Fixed

@wonderfly wonderfly self-assigned this Jan 9, 2015

@wonderfly wonderfly closed this Jan 9, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.