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 can I do to get rid of the failure? Up to now, I do nothing, that is already working well. Is it a bug?