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

--compressed fails with error 23 #13212

Closed
finkjsc opened this issue Mar 27, 2024 · 2 comments
Closed

--compressed fails with error 23 #13212

finkjsc opened this issue Mar 27, 2024 · 2 comments

Comments

@finkjsc
Copy link

finkjsc commented Mar 27, 2024

I did this

curl --compressed -o "test.txt" "https://www.troyhunt.com/rss/"

I expected the following

Output file to be written without error, but fails with error 23: Failed writing received data to disk/application.

Oddly the file is written correctly but still the error persists.

Works without --compressed.

Most other URL's work, but many now fail with this error.

Versions before 8.7.1 worked without this error.

curl/libcurl version

curl 8.7.1 (x86_64-w64-mingw32) libcurl/8.7.1 LibreSSL/3.8.3 zlib/1.3.1 brotli/1.1.0 zstd/1.5.5 WinIDN libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.60.0 ngtcp2/1.4.0 nghttp3/1.2.0
Release-Date: 2024-03-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL SSPI threadsafe UnixSockets zstd

operating system

Windows 10 Pro 22H2

@dfandrich
Copy link
Contributor

This may be a duplicate of #13209

icing added a commit to icing/curl that referenced this issue Mar 28, 2024
- refs curl#13212 and curl#13209
- curl's transfer handling may write 0-length chunks at
  the end of the download with an EOS flag. (HTTP/2 does
  this commonly)
- content encoders need to pass-through such a write and
  not count this as error in case they are finished decoding
@icing
Copy link
Contributor

icing commented Mar 28, 2024

Please see #13219 for a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants