Skip to content

Conversation

@bunsenstraat
Copy link
Collaborator

@bunsenstraat bunsenstraat commented Aug 25, 2021

it's unclear sometimes which IPFS node will response with data. I've seen 'too many requests' errors on ipfs.io and so on...
so this picks the first one that has the files. sometimes the hash is not available yet on any of the nodes. this can still happen if you push to pinata. it takes a few minutes before public nodes have the hash. it also adds a timeout for the request.
it also returns a warning when the local storage is full, which happens more quickly than you'd think.

@ioedeveloper Manual testing: this is hard to test. it actually also needs #1532
otherwise the plugin call will timeout before the first timeout of the IPFS request will timeout....

@bunsenstraat bunsenstraat self-assigned this Aug 25, 2021
@bunsenstraat bunsenstraat requested a review from yann300 August 25, 2021 11:09
protocol: 'https',
ipfsurl: 'https://ipfs.io/ipfs/'
}
this.remixIPFS = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ipfsconfig already uses the same URL, is that wanted?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ipfsconfig is set by the dgit client. so it can be anything. so it's not a duplicate per se.

@bunsenstraat bunsenstraat merged commit 30fac04 into master Aug 25, 2021
@bunsenstraat bunsenstraat deleted the fixdgit branch August 25, 2021 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants