Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Content Related Gateway Errors #4046

Closed
piboistudios opened this issue Feb 11, 2022 · 2 comments
Closed

Content Related Gateway Errors #4046

piboistudios opened this issue Feb 11, 2022 · 2 comments
Labels
need/author-input Needs input from the original author

Comments

@piboistudios
Copy link

piboistudios commented Feb 11, 2022

  • Version:

Browser only use case. 0.62.1

  • Platform:
Google Chrome 97.0.4692.99 (Official Build) (64-bit) (cohort: Stable)
Revision d740da257583289dbebd2eb37e8668928fac5ead-refs/branch-heads/4692@{#1461}
OS Windows 10 Version 20H2 (Build 19042.1466)
  • Subsystem:

Files

Severity:

High

Description:

Adding content with certain data results in gateway errors.
What I did:

  • go to https://dweb.link/ipfs/${(await ipfs.add("Dalvin is Law")).cid} - This works
  • go to https://dweb.link/ipfs/${(await ipfs.add("Dalvin -is- Law")).cid} - This doesn't work (Gateway error)
  • go to https://dweb.link/ipfs/${(await ipfs.add("Dalvin been Law")).cid} - This works
  • go to https://dweb.link/ipfs/${(await ipfs.add("Dalvin -been- Law")).cid} - This doesn't work (Gateway error)

This also happens for certain files. I believe it to be related to the encoding as I was intermittently getting an error complaining about the encoding of the hash... but alas I can't get this error anymore (just gateway errors)

This also happens with pretty much all other public gateways. I haven't set up an IPFS (full?) node myself just yet, just testing it out and ran into this. It works very well when it does, but it just doesn't sometimes, and it doesn't seem to be related to actual network availability. It seems pretty directly related to the actual content of the data in a way I am unfortunately struggling to explain given the limited knowledge of IPFS I have.

Steps to reproduce the error:

Oh, maybe I should've put the above section here. Well

  • go to https://dweb.link/ipfs/${(await ipfs.add("Dalvin is Law")).cid} - This works
  • go to https://dweb.link/ipfs/${(await ipfs.add("Dalvin -is- Law")).cid} - This doesn't work (Gateway error)
  • go to https://dweb.link/ipfs/${(await ipfs.add("Dalvin been Law")).cid} - This works
  • go to https://dweb.link/ipfs/${(await ipfs.add("Dalvin -been- Law")).cid} - This doesn't work (Gateway error)
@piboistudios piboistudios added the need/triage Needs initial labeling and prioritization label Feb 11, 2022
@ipfs ipfs deleted a comment from welcome bot Apr 22, 2022
@lidel
Copy link
Member

lidel commented Apr 22, 2022

@piboistudios these API calls look incorrect (see [docs for ipfs.add](https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/FILES.md#ipfsadddata- ptions)) – seems that you omitted some context.

Mind telling us more? Namely:

  • data or exact CIDs that work / error
  • what exact error is returned by HTTP gateway?

Thanks.

@lidel lidel added need/author-input Needs input from the original author and removed need/triage Needs initial labeling and prioritization labels Apr 22, 2022
@BigLep
Copy link
Contributor

BigLep commented May 6, 2022

Closing because didn't get more info. Feel free to reopen with the provided info.

@BigLep BigLep closed this as completed May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need/author-input Needs input from the original author
Projects
None yet
Development

No branches or pull requests

3 participants