brookesb91 / brookesb91/archivist

Image saving error: Range Not Satisfiable

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When fetching a thread from 4chan the text and reference quotes work fine, but all images and videos are corrupted.
For images thumbnails are saved, but when they are expanded or opened in a new tab nothing is shown.
When opening the images in a new tab I am met with: [image](https://i.imgur.com/RSz0EOs.png)
`The image cannot be displayed because it contains errors.`
However, during fetching I get no errors with images, but with fetching webms the console logs:
```
RangeNotSatisfiableError: Range Not Satisfiable
at SendStream.error (F:\software\archivist\node_modules\send\index.js:270:31)
at SendStream.send (F:\software\archivist\node_modules\send\index.js:670:19)
at onstat (F:\software\archivist\node_modules\send\index.js:729:10)
at FSReqCallback.oncomplete (node:fs:204:5)
```

I have no clue if this project is still actively maintained or monitored, but if anyone could help me out with this, the help would be much appreciated.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing a 4chan thread fetch that saves images and webms, then trace the media-saving path around the reported stack in node_modules/send/index.js. Confirm the behavior for thumbnails, expanded images, new-tab images, and webms; done means saved media opens correctly without corruption or RangeNotSatisfiableError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.