Joystream / Joystream/joystream

[Colossus] Trying to hash `File not found` response

Open
#5,045 0 comments 0 reactions 0 assignees View on GitHub
bug colossus
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

```
2024-01-16 09:04:13:413 warn: Sync - fetching data error for https://storage.ilich-tech.com/storage/api/v1/files/1454434: Error: Invalid file hash. Expected: gW5WDhmfyda3B7xJdzLwJTEPHENyJ8Q8Rc3otQ6XhMtRFL - real: gWA8ejdyVhcaiwBSc9AqtN8nQidkDJinZEFL498TQRxrR2
```
It looks like wrong file is returned when in reality the URL returns
```json
{"type":"files","message":"File not found."}
```
Colossus should handle that more gracefully and potentially only log that it couldn't get a given file from any of the providers, not spam all URLs with warnings

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.