-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[http-api] Unable to decode pubsub message property from #3522
Comments
From what you mentioned in IRC, the long B58 string you get with For comparison
It seems that all bytes > |
Did some more investigation, this is what curl gives me
|
Running that string through
|
The corruption is due to the Protobuf defining the Message format of pub/floodsub using The generated Go files define this filed as The Portobuf Guide says that There are few ways to proceed, the best one seems to be define this filed as |
Spec update for this: libp2p/pubsub-notes#6 |
Made the change in go-floodsub, should be fixed in the next update |
@dignifiedquire can you check latest master and verify this has been resolved? |
Will do later today |
PubSub tests are passing with js-ipfs-api and latest go-ipfs master
However, now I'm getting the name.resolve tests to fail due to a duplicated /ipfs/ prefix, see:
|
@diasdavid can this issue be closed then? |
Not yet, the tests were disabled: https://github.com/ipfs/interface-ipfs-core/blob/master/src/pubsub.js#L116-L117 so you need to first reenable them |
Could you then re-enable them? |
@whyrusleeping with regards to PubSub, all good! :) ipfs-inactive/js-ipfs-http-client#493 (comment) Now a new bug, name.resolve, but you can close this issue if you want and track that in a new one? |
@diasdavid Yeah, lets open a new issue |
Version information:
0.4.5-pre1
Type:
Bug
Description:
I am trying to decode the pubsub messages on the http-api in js-ipfs-api, but I am failing to get anything sensible out of the
from
property.The value I'm getting as a string looks like this:
'\u0012 �x\u0017D����;�\'sW\u0010�E�\u0007m�\u001bU��6bj�1�}�'
but trying to decode it into a buffer usingutf8
does not give anything sensible. Ideally thefrom
parameter isn't encoded at all on the http-api level, and it would simply be the base58 encoded string of the multihash.The text was updated successfully, but these errors were encountered: