Error when uploading 378kb image file

I have been getting the following error (see below) when uploading a website containing a single 378kb image.

Can you tell me why I’m getting this error. Users have experienced similar issues when the image file size is too big, but this one is well under 1MB. I’ve uploaded many images without a problem until today.

In this case, I uploaded the contents of a website WITHOUT the image first and did not get any errors. Then I added the image to the website and pushed the change to my remote git repository, which caused the error below.

Thanks in advance for your help.

Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 361.58 KiB | 27.81 MiB/s, done.
Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

Ok, I think I figured it out. I did a speed test on my internet connection and discovered that while my download speed was normal, my upload speed was crawling. It’s possible the github server was timing out, which is why the images weren’t uploading. I rebooted by modem and router, and since then have been able to upload the project with images directly from the command line.


:wave: Welcome!

I’m so glad you figured this out and that you came back to update us. You can be sure it’ll help someone else someday!