Skip to content

[http-api] Unable to decode pubsub message property from #3522

Closed
@dignifiedquire

Description

@dignifiedquire

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 using utf8 does not give anything sensible. Ideally the from parameter isn't encoded at all on the http-api level, and it would simply be the base58 encoded string of the multihash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions