ass icon indicating copy to clipboard operation
ass copied to clipboard

[BUG] Error: EPERM: operation not permitted, unlink while uploading GIF files.

Open bditt opened this issue 2 years ago • 4 comments

Is there an existing Issue for this bug?

  • [X] I have searched the existing issues

Expected behavior

File should upload and be treated in the same way a .mp4 file is.

Actual behavior

Response: 500 Error: EPERM: operation not permitted, unlink 'path\to\local\gif\giphy.gif'

It uploads the file, but doesn't seem to be able to return it.

I'm using the a digital oceans space storage to hold my files.

Steps to reproduce

  1. Findany gif from https://giphy.com/
  2. Right click it, save as, save as .gif file.
  3. Right click it in file explorer, click "Upload with ShareX".
  4. Check console for error.

Logs (optional)

Sep 14, 2022, 3:07 AM [EXPRESS]  HTTP POST: /
Sep 14, 2022, 3:07 AM [DEBUG]    Hash for giphy.gif: 03f352c4fbb433527c0a24fa9de861001f288368 (SHA1, hex)
Sep 14, 2022, 3:07 AM [DEBUG]    Saving file: giphy.gif (in S3)
Sep 14, 2022, 3:07 AM [DEBUG]    File saved: giphy.gif (in S3)
Sep 14, 2022, 3:07 AM [EXPRESS]  Response: 500
Error: EPERM: operation not permitted, unlink 'path\to\local\gif\giphy.gif'

ass version

  • ass v0.12.0 *

Deployment

Manual

Operating system

Windows Server 2019 version 1809

Node version

v17.7.1

bditt avatar Sep 14 '22 07:09 bditt

Is it possible to give Node 16 LTS a shot? Node 17 seems to have a number of issues. Based on your Issue it sounds like other file types still work- do GIF's not from Giphy upload or do all GIF's fail?

tycrek avatar Sep 14 '22 13:09 tycrek

I can give it a try, and it's all types of gifs, not just giphy gifs.

bditt avatar Sep 17 '22 08:09 bditt

I couldn't uninstall node 17, so seems I can't try it.

bditt avatar Sep 18 '22 00:09 bditt

I couldn't uninstall node 17, so seems I can't try it.

Try nvm.

Permanently avatar Sep 19 '22 14:09 Permanently

Closing issue until user is able to reproduce on Node 16

tycrek avatar Oct 14 '22 15:10 tycrek