开发者社区 > 云原生 > 正文

替换Apollo的数据源的问题

更换后,在测试环境用IP:Port没有问题,控制台修改可以及时生效,但是在线上环境,因为是用的域名且加上了账号权限控制,控制台修改没有问题Apollo中也修改了,但是客户端无法读取了,一直在报:

2019-02-28 14:13:44.870 WARN 13124 --- [ngPollService-1] c.c.f.a.i.RemoteConfigLongPollService : Long polling failed, will retry in 8 seconds. appId: d2336a18247739dd, cluster: default, namespaces: application, long polling url: null, reason: Get config services failed from http://config.xxx.com.cn/services/config?appId=d2336a18247739dd&ip=10.167.3.90 [Cause: Could not complete get operation [Cause: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 7 column 1 path $ [Cause: Expected BEGIN_ARRAY but was STRING at line 7 column 1 path $]]] 2019-02-28 14:13:54.937 WARN 13124 --- [ngPollService-1] c.c.f.a.i.RemoteConfigLongPollService : Long polling failed, will retry in 16 seconds. appId: d2336a18247739dd, cluster: default, namespaces: application, long polling url: null, reason: Get config services failed from http://config.xxx.com.cn/services/config?appId=d2336a18247739dd&ip=10.167.3.90 [Cause: Could not complete get operation [Cause: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 7 column 1 path $ [Cause: Expected BEGIN_ARRAY but was STRING at line 7 column 1 path $]]] 2019-02-28 14:14:12.987 WARN 13124 --- [ngPollService-1] c.c.f.a.i.RemoteConfigLongPollService : Long polling failed, will retry in 32 seconds. appId: d2336a18247739dd, cluster: default, namespaces: application, long polling url: null, reason: Get config services failed from http://config.xxx.com.cn/services/config?appId=d2336a18247739dd&ip=10.167.3.90 [Cause: Could not complete get operation [Cause: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 7 column 1 path $ [Cause: Expected BEGIN_ARRAY but was STRING at line 7 column 1 path $]]] 2019-02-28 14:14:47.046 WARN 13124 --- [ngPollService-1] c.c.f.a.i.RemoteConfigLongPollService : Long polling failed, will retry in 64 seconds. appId: d2336a18247739dd, cluster: default, namespaces: application, long polling url: null, reason: Get config services failed from http://config.xxx.com.cn/services/config?appId=d2336a18247739dd&ip=10.167.3.90 [Cause: Could not complete get operation [Cause: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 7 column 1 path $ [Cause: Expected BEGIN_ARRAY but was STRING at line 7 column 1 path $]]] 请问有什么办法解决吗,或者修改哪里可以更换为OpenApi形式

原提问者GitHub用户188

展开
收起
码字王 2023-05-19 19:02:59 164 0
1 条回答
写回答
取消 提交回答
  • 问题解决了,是配置错误

    原回答者GitHub用户188

    2023-05-19 21:26:51
    赞同 展开评论 打赏

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载