Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Browser pubsub Firefox workaround not working around? #3226

@achingbrain

Description

@achingbrain

This function claims to start a pubsub subscription moving by sending some data but running the tests with DEBUG=ipfs* shows the following:

LOG: '%cipfs-http-client:pubsub:subscribe %cFailed to publish empty message%c +4ms', 'color: #6633CC', 'color: inherit', 'color: #6633CC', HTTPError: argument "data" is required

HTTPError: argument "data" is required

    at Object.errorHandler [as handleError] (file:/Users/alex/Documents/Workspaces/ipfs/js-ipfs/packages/ipfs-http-client/src/lib/core.js:87:15)
    at async Client.fetch (file:/Users/alex/Documents/Workspaces/ipfs/js-ipfs/node_modules/ipfs-utils/src/http.js:153:9)
    at async eval (file:/Users/alex/Documents/Workspaces/ipfs/js-ipfs/packages/ipfs-http-client/src/pubsub/publish.js:22:17)
    at async eval (file:/Users/alex/Documents/Workspaces/ipfs/js-ipfs/packages/ipfs-http-client/src/pubsub/subscribe.js:30:9)

So go-IPFS is rejecting the empty message. Needs more analysis but this workaround may not be working around any more.

Metadata

Metadata

Assignees

Labels

kind/bugA bug in existing code (including security flaws)need/analysisNeeds further analysis before proceeding

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions