Closed dkgaraujo closed 6 days ago
A similar problem was filed against rsconnect
and appears related to the size of the file that is uploaded to RPubs. https://github.com/rstudio/rsconnect/issues/450
I am receiving this error message with rtweet when I try to upload an image via a parameter. It was also detected by a contributor and posted on SO.
My traceback got me into curl::curl_fetch_memory() specifically the .Call:
output <- .Call(R_curl_fetch_memory, enc2utf8(url), handle,
nonblocking)
The url and the handle seem the same while nonblocking is TRUE. In this query I had to encode an image as base64 and use it as a parameter, so the resulting url is quite long:
https://api.twitter.com/1.1/account/update_profile_banner.json?banner=%2F9j%2F4AAQSkZJRgABAQAAAQABAAD%2F2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7%2F2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7%2FwgARCAH0BdwDASIAAhEBAxEB%2F8QAHAABAAEFAQEAAAAAAAAAAAAAAAUBAwQGBwII%2F8QAGgEBAQADAQEAAAAAAAAAAAAAAAECAwQFBv%2FaAAwDAQACEAMQAAAB7EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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IHuz%2BHRkqw8BwoLprF2KYpOSBDYeJiDRWSgQ6BA7UZrm6%2BRTMT%2BlufdqHn8fxlBhQukJ%2FVCSA3KhyVjPBRsI0pKmAp5o5O2h8teTrrpLAq2qzQO1JJR61qWoPiVaugF1XBTMfEE3GEO41liDCospdDLRNwEByKWuY6Gnag9qTEiGxkeP91aXpCVFvbdvv8Aw4OF1CADVWnTC4xrhJe3%2FtSmYalSpuq5lvOtat%2BFtaSEJamSehZWvjhZe5en5%2F7ytSENs%2Fk1Sg%2F5teoIepj8ChFigMdC9kwNJu4q8o9WeOYqUcWODXSBlWosn5n%2BpOjD7QtW%2FL4q0tkehg4sQTG0IvhB28Z3%2BVkEDdUCm861B9GbGwxxz4z1O%2FbY%2B0FQ%2B7cAF0wF2r8DgEA5sxtY5tP5rWsGxZ08AmhNYCOtGuj0tWkGj4oRRO3Orz2Je1JRCaq3eM3qXghGzebKw3Xa9OVBEwmysGDY3b8DGK915Hguittjfj9DxTV7sJCbAOZ7pa8B6Mz6NSEondV3Mu0tqlEVZCA4HPmrvS3HvUZf7CtOVPgO1YCetALAHSniGCpS%2FDDbI1527eDkQYtaFs8lzuNqglSkN8pqjqrvAFQCV0igZ5zvy8HcnHwXuO3ih8hbqYJcBquAXFRWgQYVuN0XvGPpZ8kx9R08WaazwfHng%2FRx4MfVz4TjmijSis%2BA%2BkafRfA%2FTih%2BnVsLMibxM0cdjNLjsYCxxyUQlYeVQiFhwPWljxFS3meQtprSdmDtang2wPFIIXXVcEXnrRZKCxLAGgGkcCmAz7p4W5ASNRh7K7UpOScSmoqUstl4nOKNuZ4Dx5o8WaazwOGPG%2BN444Pg5Vjjjg8P%2F9k%3D
Sorry I don't know enough of C to debug further.
$version
[1] "7.68.0"
$ssl_version
[1] "GnuTLS/3.6.13"
$libz_version
[1] "1.2.11"
$libssh_version
[1] "libssh/0.9.3/openssl/zlib"
$libidn_version
[1] "2.2.0"
$host
[1] "x86_64-pc-linux-gnu"
$protocols
[1] "dict" "file" "ftp" "ftps" "gopher" "http" "https" "imap" "imaps" "ldap"
[11] "ldaps" "pop3" "pop3s" "rtmp" "rtsp" "scp" "sftp" "smb" "smbs" "smtp"
[21] "smtps" "telnet" "tftp"
$ipv6
[1] TRUE
$http2
[1] TRUE
$idn
[1] TRUE
This is usually a server error. A workaround is to disable http2: https://cran.r-project.org/web/packages/curl/vignettes/intro.html#Disabling_HTTP2
@jeroen, thanks for that pointer. Would there be a quick fix to automatically check whether the HTTP/2 layer on the server is buggy/faulty and disable http2 accordingly? Anything that would be straightforward to propose a PR in case you think is helpful?
is there a solution in the moment?
@dlt-green the only solution is disabling http/2 if you're working with a buggy server: https://github.com/jeroen/curl/issues/232#issuecomment-1160222277
If I understand the thread, does this mean we should use: handle_setopt(handle, http_version = 2)
. However, I don't know which handler use if curl is called via httr or other packages. When using curl via other packages how can we set the option for a handle not set up directly?
In httr you can pass httr::config(http_version=2)
in your request. For example you should be able to see the difference (add verbose and forbid_reuse to be able to see the connection step):
# Connect with HTTP 1/1
httr::GET('https://nghttp2.org/httpbin/get', httr::config(verbose=TRUE, http_version=2, forbid_reuse=T))
The default for this server is http/2:
# Connect with HTTP 2
httr::GET('https://nghttp2.org/httpbin/get', httr::config(verbose=TRUE, forbid_reuse=T))
@dlt-green the only solution is disabling http/2 if you're working with a buggy server: #232 (comment)
we are working with docker and traefik (all original container) - i don't think why our server should be buggy!?
@llrs
As I mentioned in my SO post, setting the HTTP version to 1.1 doesn’t resolve this error, at least not for uploading the profile banner.
However, we then receive a new error message, telling us that the header is too long.
I think this rtweet issue will not be resolved by setting the HTTP version to 1.1 although it might be a part of the problem, I’d say that the root of all this comes from how {httr} is constructing the call to curl.
Hi,
I ran into this error from BiocParallel
as documented at https://github.com/Bioconductor/BiocFileCache/issues/48. Updating my macOS operating system (and command line tools for Xcode) from Ventura 13.4 to 13.5 resolved the error.
Maybe this could also be the root of the issue https://github.com/ropensci/crul/issues/174 @jhnwllr and @sckott were discussing there. Timing wise, it seems to match with Ventura 13.4 being a common macOS version people were using, though this is just a guess.
Best, Leo
I am receiving this error while updating git using CLI
PS E:\deskyop\projects> git update-git-for-windows Git for Windows 2.40.1.windows.1 (64-bit) Update 2.43.0.windows.1 is available curl: (18) HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
I have the same problems listed in this thread. Setting http_version = 2 did not fix it.
This error INTERNAL_ERROR
typically indicates a server bug with HTTP2. I think these days both curl and most http/2 servers are a bit more robust so the problem should not appear much anymore.
If you still find it, please open an issue and include an example so we can reproduce it.
Hi all! I couldn't find a solution to a problem preventing me to upload knitted notebooks into RPubs. First I will describe what I believe has been the root of the problem, then I'll post the sessionInfo() and curl::curl_version(). The full code I'm using has been posted to GitHub for reprex.
tl;dr
Publishing to RPubs used to work fine, but after I canceled an upload of a larger version of my notebook midway it stopped working. Seems to be some curl error about a stream not being closed cleanly (probably during the canceled upload?). Can't seem to solve it myself, help request.
Antecedents
I opened up an RPubs page and published it successfully. Subsequently, I updated the page, also smoothly. Then, as I was making a third update that included some new relatively big chunks, I noticed halfway during the upload process that I had made a mistake, and in an attempt to avoid that from being uploaded, I canceled the upload halfway. Since then, my problems started.
Description of the error
Now, whenever I try to upload a different version of the same notebook to RPubs, or even a new notebook altogether, it fails, with the following message (also available here is an image of the popup error) appears:
What did I do to try and solve it (so far with very limited success)
I couldn't find a problem like mine in the whole of the internet (which perhaps tells more about me than about the problem, but I'm sidetracking...)
I re-installed
rsconnect
andcurl
, including the developer version of rsconnect from github. I also tortured every possible knob and tickbox that could be related to curl/connectivity in RStudio in an attempt to solve the problem myself.I even did the famous close RStudio, open again; shut down computer and turn on again, etc.
Curiously, I was then able to update the notebook as before (the version before the expansion) albeit including minor changes, like table of contents. That's the version you can now see in RPubs. But aside from that, no success.
sessionInfo() and curl::curl_version()
Code
You can find the notebook here. It knits just fine - the problem for me is when I try to publish it in RPubs.