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

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

Open
ilikebuttons opened this issue Oct 18, 2019 · 5 comments

Comments

@ilikebuttons
Copy link

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'

@victor012888
Copy link

same problem

@007darkmatter5
Copy link

Same here...

@otaker01
Copy link

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

@Ezra-Siton-UIX
Copy link

Ezra-Siton-UIX commented Aug 10, 2020

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

@Timileyin123
Copy link

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

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

No branches or pull requests

6 participants