Giter VIP home page Giter VIP logo

Comments (3)

MAXOUXAX avatar MAXOUXAX commented on June 18, 2024

As a solution, I manually removed this particular upload from the data.json file, and restarted ass.
So the problem is solved, but it could happen again in the future.
So either there was an error during the upload, but ass still considered the upload valid and complete and therefore wrote the upload to the data.json file, and was therefore trying to serve a file that didn't exist, or there was an error during a deletion, which caused the file to be deleted, but not the file entry to be deleted from the data.json file.

from ass.

tycrek avatar tycrek commented on June 18, 2024

Just to confirm your Issue, you're using Node 12 with Docker?? My Docker files specifically specify Node 14. If you're not using Docker, then you need to use Node 14 for ass (mentioned in the README for local installation method)

Re-read the issue and this doesn't apply, writing new comment

from ass.

tycrek avatar tycrek commented on June 18, 2024

an upload failed, and ass considers the ID passed in the URL as valid, and when it tries to upload the file corresponding to this ID

I'm not sure what you mean by this. The upload process saves the file to disk/wherever first, then generates the ID after. If the file save failed, the upload is reject()'d by Promise and nothing will get saved.

it may occur if you mistakenly delete the files in the uploads folder

My main reply to this is simply that hosts should not be touching the uploads folder (I know it's not a great solution but you can delete using the ShareX program by right-clicking an image -> Open -> Deletion URL).

With that said, this definitely should not crash and I will look into this.

in order to remove from the database an upload that did not finish correctly and did not create a file.

I get the idea but because of my prior notes this wouldn't apply.

or there was an error during a deletion, which caused the file to be deleted, but not the file entry to be deleted from the data.json file

Based on the Issue and how ass operates internally I think this must be what happened, though I'm not sure what would have caused it to fail.

from ass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.