-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Proposed example for IPNS publish interop (address questions in Discuss) #3166
Conversation
This is amazing - it'll be a great help for people in the future, thanks so much. Could you please:
|
Ok, I'll give it a shot!
|
I've added tests to all the existing http client examples - they now live under |
Thanks @achingbrain, I started to write the test but was just scratching my head as to how to run them. (I did run |
There was a bug in the |
You need to declare After all that you should be able to run |
Ok, all is set with the above instructions, but then something goes wrong resolving the
Config is fine, the file is there. Note: I'm using a Windows machine, and that's already caused some workaround issues, I wonder if it's linked to this too as it's a shell script? For example, I had to add the case for the folder slashes in the other direction in
I'll see if I can figure a workaround, but any tips are time saving and greatly appreciated! Otherwise, I will just write the test as best I can, and have someone else run it if this is too much headache :/ Edit: Found a workaround for windows which should do the trick. |
@achingbrain Alex, I think these tests are ready to be checked, but I'm having one heck of a frustrating time with multiple test env issues on my machine. If possible, could you run them to verify? I've gone around in circles so many times I think I'm at a stopping point. |
Closing in favor of #3207 where this is being continued. |
Hi everybody! Please bear with me, this is my first pull request into the IPFS repo, I apologize in advance if I mess up somehow!
Context for this PR:
This is a proposed example for the /examples/ folder for how to
ipfs.name.publish
injs-ipfs
and have that ipns record pubsub'd over to a friendly neighborhoodgo-ipfs
node to get recorded on theDHT
.Essentially, based on what was posted in the discuss, it still took me weeks to get this working, hopefully we can save others' time with an example? The good news is, it seems to work with
bothself
keysand imported custom keys(the topics of the discussions below). [Edit: After fixes to my experiments, I discovered the resolve on custom keys was still failing (see #6360)]Maybe this belongs in an "interop" example folder, but I didn't see one so I put it in
js-http-client
.Relevant discussion,
I think an example like this is needed, based on seeing questions:
in Discuss cant-access-published-ipns-record-config-problem/5476/18 and
in Dicuss ipns-not-resolvable-from-other-node/8624/2 and
issue #6360(still not resolved, I was premature on this one).Stakeholders linked/mentioned
@vasco-santos and @aschmahmann have been great at fielding this question more than once, so I know it's not just me trying to get this to work outside the tests.
Thanks for coding such a great project!