react-apollo icon indicating copy to clipboard operation
react-apollo copied to clipboard

curl command to download server code results in 'Failed writing body'

Open ilikebuttons opened this issue 6 years ago • 5 comments

I'm experiencing issue #48:

I attempt to download the server code by entering this command into Windows command prompt:

curl https://codeload.github.com/howtographql/react-apollo/tar.gz/starter | tar -xz --strip=1 react-apollo-starter/server

...and receive the following output:

t a r%:  TEortralo r   o p%e nRiencge iavrecdh i%v eX:f eFradi l eAdv etroa goep eSnp e'e\d\ . \ tTaipmee0 '
  Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  2  156k    2  4110    0     0   4110      0  0:00:39 --:--:--  0:00:39 16440
curl: (23) Failed writing body (1356 != 1370)

I also tried it with powershell, which gave this output:

tar.exe: Error opening archive: Failed to open '\\.\tape0'

ilikebuttons avatar Oct 18 '19 22:10 ilikebuttons

same problem

victor012888 avatar Apr 07 '20 02:04 victor012888

Same here...

007darkmatter5 avatar May 28 '20 22:05 007darkmatter5

I had the same problem. Just use git bash it worked for me.

otaker01 avatar Jun 18 '20 16:06 otaker01

Windows 10.

Get this error (Under terminal) tar.exe: Error opening archive: Failed to open image

Run the curl command under Git bash (Inside the correct folder) ==> solve the issue

image

image

Ezra-Siton-UIX avatar Aug 10 '20 09:08 Ezra-Siton-UIX

Hi, I am encountering the same error, and trying to solve it with the solution stated above, I got another error stated below:

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0 curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.

gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now

ANY POSSIBLE SOLUTION, PLEASE

Timileyin123 avatar May 16 '23 21:05 Timileyin123