WEEK 9 & 10 QUESTIONS | May 31 - June 13, 2021

WEEK 9 & 10 QUESTIONS | May 31 - June 13, 2021 (times are in EST)

This is a rollup for weeks 9 & 10! I’ve attempted to highlight interesting or common questions. I’ve also connected these items to either their direct solution, or a related issue on Github. This will be how these reports will be formatted from now on :slight_smile:. There’s a fair amount of content buried in here, I hope you enjoy!

Questions, Items, and Issues

js-ipfs dht.findProvs: TypeError: key.toBaseEncodedString is not a function (js-ipfs#3502)

I’ve noticed at least a couple users ran into this issue:


Currently the issue related to this is closed. I’m pretty sure it’s recommended to stay away from using DHT in js-ipfs for the time being :slight_smile:.

Adam Faturahman asked on StackOverflow: UnhandledPromiseRejectionWarning: InvalidRepoVersionError: Incompatible repo versions. (IPFS-JS 0.55.3)-(NODE JS 14.17.0) (js-ipfs#3717)

UnhandledPromiseRejectionWarning: InvalidRepoVersionError: Incompatible repo versions. Automatic migrations disabled. Please migrate the repo manually.


I’ve personally run into a corrupted repo. This appears to be a migration issue, not sure why. The easiest solution to me seems to be a feature that allows the developer to programmatically re-initialise a repo, or delete it. I’d love to hear more thoughts on this!

How do I get peers using js-ipfs in the browser? :white_check_mark: (Create a simple chat app)

I noticed at least 3 questions in this period possibly asking something along these lines (though I lost a link due to a room migration):


I linked “Create a simple chat app” above, a new docs page explaining how to discover and communicate with peers using js-ipfs in the browser.

Fayne Aldan asked in #ipfs: Does anyone know what I’d do if I want to host a gateway? (ipfs-docs#788)

I believe this question was actually featured in the last rollup, but now it has an issue attached :wink: .


Now there’s an issue open to get a nice doc explaining how to setup your very own gateway! Just in case though, I’m going to quote my previous answer too:

You actually get the gateway from your very own local gateway! You might have noticed you can access your own local gateway with URLs like http://ipfs.io.ipns.localhost:8080. Well, it’s actually that very gateway that you’d configure and use! To enable SSL, you simply use Nginx as a reverse proxy, and there are plenty of guides online about how to do that. Using Nginx, you can also give your gateway a publicly accessible address but be warned, there’s no telling how popular your public gateway might get, and consume all your bandwidth :wink: .

nickreserved asked on the forums: Download stopped (go-ipfs#8192)


I would have imagined the blocks would be downloaded in the background after the failure, as they’re available anyways. I’m unsure if this mechanism actually exists though, so I filed the linked issue above :slight_smile:. If anyone has more insight on what’s going on, your input would be greatly appreciated.

Discordian asked on the forums: How do I get peer’s IP when using Nginx reverse proxy? (go-ipfs#8193)


It’s me! I’ve been quite stumped on this issue. This is one where I’d personally love some ideas :slight_smile:.

1 Like