Bizarre discrepancies between running ipfs.files.cat on images, videos, and text #959
Description
- Version: 0.25.0
- Platform: ChromeOS Version 59.0.3071.134 (Official Build) (64-bit)
- Subsystem: N/A
Type: Bug
Severity: High
Description:
When running js-ipfs in a browser I'm able to cat hashes that point to images or videos, but cannot seem to return hashes that point to text. All of these hashes are working just fine on the ipfs.io/ipfs gateway but only some of them seem to be working over js-ipfs. So far I'm pretty sure that the correlation has to do with file type, but I could be missing something obvious in my code. I won't pretend that I have a full understanding of this magical thing you've created. 🤔
Steps to reproduce the error:
I've created a codepen for this, but I'm having the same problem outside of codepen.
https://codepen.io/ConnorGutman/pen/yoxyJM
Using this pen the following hashes I've found from Reddit work:
Qmaegukzb1dLA7F4EfhXnF4s5JzpbsBQSK6VWDHP4sNXe2 (image)
QmYqtUPsXeY432KYEvs6fbAM3fUDrCfsgGSySRffckYPeV (image)
Qma3HGzDH9KXvyNTcVbrHtcjHubDHxyPEG8Xh7fRKJVqrH (image)
QmbAncBbxoTTcRn2FJy5qeuYU7ygfA5dTDrG89XBwSwtJq (video)
QmNcbqQkg7PemeTbhs7GchNwyx2CTcrEAD9cacbrAbxXXZ (video)
QmanVqtDfpEx3Fbdz5eRwJ3aNbSRCLTAiSDMLRHEP8hNCR (video)
The following text hashes do not work:
Qmc5gCcjYypU7y28oCALwfSvxCBskLuPKWpK4qpterKC7z
QmTp2hEo8eXRp6wg7jXv1BLCMh5a4F3B7buAUZNZUu772j
QmVDWmkM87NfR85WE1LvfwfJLRcMEtfNnCBiCJQRePP7Ly
QmdKUFBHQqYjGXgYkr5ViC9nbukmrEgXSgbb3LRTQ5dkCD
Again, not sure if this is a huge obvious noob-y failure of some sort on my end. I can't for the life of me seem to figure it out. Time for more coffee I guess! ☕️
Keep up the awesome work!