ipfs / ipfs/kubo

ipfs-http-client block api timeout option

Open
#8,570 5 comments 0 reactions 0 assignees View on GitHub
kind/bug need/triage
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

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

- **Version**:
ipfs-http-client@52.0.3
```js
{
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
```js
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)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.