gpt4 book ai didi

wso2 - API Manager 2.0.0 网关 worker 启动时出错

转载 作者:行者123 更新时间:2023-12-03 18:40:59 29 4
gpt4 key购买 nike

以下错误在启动时记录在网关工作节点上。

2016-08-23 12:32:42,344 [-] [Timer-5] ERROR KeyTemplateRetriever Exception when retrieving throttling data from remote endpoint
Unexpected character (<) at position 0.
at org.json.simple.parser.Yylex.yylex(Unknown Source)
at org.json.simple.parser.JSONParser.nextToken(Unknown Source)
at org.json.simple.parser.JSONParser.parse(Unknown Source)
at org.json.simple.parser.JSONParser.parse(Unknown Source)
at org.json.simple.parser.JSONParser.parse(Unknown Source)
at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.retrieveKeyTemplateData(KeyTemplateRetriever.java:100)
at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWebService(KeyTemplateRetriever.java:111)
at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

尽管出现错误,但网关工作节点启动和环境可用于成功调用示例 API。

所有 apim 节点,禁止流量管理器,但是报告这些警告

2016-08-22 16:40:56,652 [-] [Timer-5]  WARN KeyTemplateRetriever Failed retrieving throttling data from remote endpoint: Connection refused. Retrying after 15 seconds...
2016-08-22 16:40:56,653 [-] [Timer-4] WARN BlockingConditionRetriever Failed retrieving Blocking Conditions from remote endpoint: Connection refused. Retrying after 15 seconds...

环境:

  • APIM 2.0.0 集群
  • 发布者(默认配置文件)
  • 存储(默认配置文件)
  • gw 经理和 2 gw worker (默认配置文件)
  • 交通经理(使用交通经理配置文件)
  • 数据库:MariaDB 服务器,wsrep_25.10.r4144
  • 用户存储:读/写 LDAP
  • JVM:Java 版本“1.8.0_92”
  • 操作系统:CentOS Linux 7.0.1406 版(核心版)
  • 注意使用默认包设置取消配置 key 管理器

最佳答案

如果您像下面那样在 api-manager.xml 中禁用 Advanced Throttling,该错误就会消失。如果启用它,它需要一个 key 管理器节点。

<EnableAdvanceThrottling>false</EnableAdvanceThrottling>

关于wso2 - API Manager 2.0.0 网关 worker 启动时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39101064/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com