Score:1

Right After piping to "head"/"tail": "curl: (23) Failure writing output to destination"

When I curled a too long API call and wanted to show only the first 30 lines in the console with curl my_api_call|head -30, I ran into:

 24 49931   24 12089    0     0    98k      0 --:--:-- --:--:-- --:--:--   99k
curl: (23) Failure writing output to destination

This is surely the same thing going on as in curl: (23) Failure writing output to destination, but there, it fails with the download. Here, it fails right after piping to "head"/"tail". The piping itself still works, I get the 30 lines. If I take the pipe out, there is no failure.

The answer of the other question could not help me, I ran sudo apt remove curl and sudo apt install curl.

What to do to get rid of the failure? Up to now, I do nothing, that is already working well. Is it a bug?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.