我正试图在docker上为我的项目运行IOTA hornet节点。当我想获得节点的信息时,我正在执行curl -s http://localhost:14265 -X POST -H 'X-IOTA-API-Version: 1' -H 'Content-Type: application/json' -d '{"command": "/health"}' | jq
。结果,我有一个错误403按摩。不明白发生了什么事。有人能帮忙吗?
我正在使用来自的config.jsonhttps://github.com/gohornet/hornet/tree/v1.0.3非常感谢。
要解决这个问题,您需要
"jwtAuth": {
"enabled": false,
"salt": "HORNET"
},
然后你可以使用在bash中检查信息
curl localhost:14265/api/v1/info