-
Notifications
You must be signed in to change notification settings - Fork 70
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
Error in curl::curl_fetch_memory(url, handle = handle): Unrecognized content encoding type. #231
Comments
What version of |
I agree. That error message should show all the built in content types and as you can see it does not show gzip. Likely the user or rcurl asked for gzip explicitly via CURLOPT_ACCEPT_ENCODING, which should not be done unless gzip support was built in. Rather than check the version info for what encodings are supported, the better way is CURLOPT_ACCEPT_ENCODING set to "". To aid applications not having to bother about what specific algorithms this particular libcurl build supports, libcurl allows a zero-length string to be set ("") to ask for an Accept-Encoding: header to be used that contains all built-in supported encodings. |
No gzip seems to be the case: $version $ssl_version $libz_version $libssh_version $libidn_version $host $protocols $ipv6 $http2 $idn |
Ok thanks for tracking it down, where should be the fix? In the user's environment or is it something to fix in the R httr request? |
@jurrigerretsen I don't know how you got that version of libcurl, but it is not properly built. I recommend you remove any custom libcurl installations from your server, and install the official libcurl4-openssl-dev from ubuntu. |
This issue has been automatically marked as stale because it has not had |
This was reported to start occurring when upgrading to R 4.0.2 at this issue cloudyr/bigQueryR#67
Full error message:
It seems related to #179 and #160 but the content-encoding which is cited as the reason at those issues is on the response is a valid type, gzip:
The user's sessionInfo:
The text was updated successfully, but these errors were encountered: