Comments (3)
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.
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.
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)
- [QUESTION] How the Markdown rendering works ? HOT 1
- [QUESTION] How do I specifcy where I would like the uploads go? HOT 1
- [FEATURE] ID Endpoints
- [QUESTION] Screenshots of interace? HOT 2
- [QUESTION] How to change the frontend of the viewer
- [QUESTION] img appear on duckduckgo
- [FEATURE] Listing user's files from the developer API
- [FEATURE] large admin webhook
- [FEATURE] Automatically hide links on Discord
- [FEATURE] Add universal S3 provider support HOT 1
- [FEATURE] Publish docker image to container registry HOT 5
- [FEATURE] Render Markdown, text files, & zip files HOT 1
- [FEATURE] Private Mode & public link sharing
- [FEATURE] NSFW detecting/blocking
- [FEATURE] Report Button HOT 3
- [FEATURE] Yunohost intergration.
- I want to setup ass HOT 1
- [FEATURE] Vitest
- [BUG] Build failed at step 5: required: { node: '>=18.0.0' } current: { node: 'v16.20.2', npm: '8.19.4' }
- [QUESTION] Uploading from Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ass.