ipfs/kubo

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

Open

#3,354 建立於 2016年11月4日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)Go (13,906 star) (2,725 fork)batch import
exp/experthelp wantedkind/bugstatus/deferredtopic/api

描述

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.

貢獻者指南

Config set fails if there is entry in config that is integer bigger than 1e6 · ipfs/kubo#3354 | Good First Issue