rest.js icon indicating copy to clipboard operation
rest.js copied to clipboard

[BUG]: upload mutil files will get error

Open CooperHash opened this issue 1 year ago • 5 comments

What happened?

like i make a for loop to upload image to my repo, sometimes will get upload fail

RequestError [HttpError]: is at 91929f0428b56ddc3f12c6b6e33352d59xxxxxxx but expected 4a9b48ee99c3533e3bf578829b1e23bxxxxxxxx

that error means: in this for loop i already upload a.jpg then after i upload a.jpg again, because the sha of the same file is the same

but i promise in the for loop all the file are different, i just don't know why, and i even make a timeout also don't work, sometimes 3 image i can upload 2, sometimes all work, this error don't repeat every time...

Versions

Octokit v8.1.4 Node v18.17.1

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

CooperHash avatar Nov 04 '23 16:11 CooperHash