恐慌:运行时错误:Krakend 中的内存地址无效或 nil 指针取消引用
我正在尝试运行 krakend run -c config.json,但它返回此
这是我的 config.json:
"version": 3,
"name": "DigitalDocs API Gateway",
"port": 8000,
"timeout": "15000ms",
"cache_ttl": "300s",
"extra_config": {
"github_com/devopsfaith/krakend-gologging": {
"level": "INFO",
"prefix": "[KRAKEND]",
"syslog": false,
"stdout": true
},
"github_com/devopsfaith/krakend-metrics": {
"collection_time": "60s",
"proxy_disabled": false,
"router_disabled": false,
"backend_disabled": false,
"endpoint_disabled": false,
"listen_address": ":8090"
},
"github_com/devopsfaith/bloomfilter": {
"N": 10000000,
"P": 0.0000001,
"HashName": "optimal",
"TTL": 1500,
"port": 1234,
"TokenKeys": ["jti"]
}
}
我的 KrakenD 版本 - 2.0.0
请帮我解决它
I'm trying to run krakend run -c config.json, but it returns this
here is my config.json:
"version": 3,
"name": "DigitalDocs API Gateway",
"port": 8000,
"timeout": "15000ms",
"cache_ttl": "300s",
"extra_config": {
"github_com/devopsfaith/krakend-gologging": {
"level": "INFO",
"prefix": "[KRAKEND]",
"syslog": false,
"stdout": true
},
"github_com/devopsfaith/krakend-metrics": {
"collection_time": "60s",
"proxy_disabled": false,
"router_disabled": false,
"backend_disabled": false,
"endpoint_disabled": false,
"listen_address": ":8090"
},
"github_com/devopsfaith/bloomfilter": {
"N": 10000000,
"P": 0.0000001,
"HashName": "optimal",
"TTL": 1500,
"port": 1234,
"TokenKeys": ["jti"]
}
}
My KrakenD version - 2.0.0
Please, help me to solve it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案,请参阅以下迁移文档: https://github.com/devopsfaith /krakend-config-migrator
您需要下载可执行文件并执行它: ./krakend-config-migrator /path_to_krakend.json_directory
自版本3,例如它不再是:“github_com/devopsfaith/krakend-metrics”而是“telemetry/metrics”
i found the solution, please refer to the migrating documentation on : https://github.com/devopsfaith/krakend-config-migrator
You need to download the executable and execute it : ./krakend-config-migrator /path_to_krakend.json_directory
Since version 3, for example it's not anymore : "github_com/devopsfaith/krakend-metrics" but "telemetry/metrics"