恐慌:运行时错误:Krakend 中的内存地址无效或 nil 指针取消引用

发布于 2025-01-14 03:07:31 字数 1020 浏览 5 评论 0原文

我正在尝试运行 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 thisenter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没︽人懂的悲伤 2025-01-21 03:07:31

我找到了解决方案,请参阅以下迁移文档: 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"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文