Skip to content

ipfs-http-client block api timeout option #8570

@tabcat

Description

@tabcat

seems like ipfs-http-api block api timeout option isnt working.

{
  version: '0.10.0',
  commit: '',
  repo: '11',
  system: 'amd64/linux',
  golang: 'go1.16.8'
}

Severity:

High - The main functionality of the application does not work, API breakage, repo format breakage, etc.

Description:

ipfs-http-client block api doesnt seem to have timeout option

Steps to reproduce the error:

start an ipfs daemon with http api

IPFS_HTTP = require('ipfs-http-client')
client = IPFS_HTTP.create()
client.dag.put({}, { timeout: -1 }) // timeout error (good)
client.block.put(new Uint8Array([]), { timeout: -1 }) // no timeout error/completes (bad)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions