ipfs / ipfs/kubo

Config set fails if there is entry in config that is integer bigger than 1e6

Open
#3,354 6 comments 0 reactions 0 assignees View on GitHub
exp/expert help wanted kind/bug status/deferred topic/api
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

I have `BloomSize` set to 1048576, if I then try to do any config call, example
```
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
```

I get:
```
Error: failed to set config value: Failure to decode config: json: cannot unmarshal number 1.048576e+06 into Go value of type int (maybe use --json?)
```

The integer is being transformed into floating point at some point.

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.