alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.29k stars 12.84k forks source link

Springcloud uses nacos to persist the sentinel configuration to get the nacos configuration API: /nacos/v1/cs/configs returns an exception: config data not exist #1580

Closed wangyingwei001 closed 5 years ago

wangyingwei001 commented 5 years ago

获取nacos配置的API:/nacos/v1/cs/configs 请求方式:Get 返回异常 为:config qdata not exist

nacos-bot commented 5 years ago

Hi @wangyingwei001, we detect non-English characters in the issue. This comment is an auto translation from @nacos-bot to help other users to understand this issue. We encourage you to describe your issue in English which is more friendly to other users.

Springcloud uses nacos to persist the sentinel configuration to get the nacos configuration API: /nacos/v1/cs/configs returns an exception: config data not exist

Get the nacos configuration API: /nacos/v1/cs/configs Request method: Get The exception returned is: config qdata not exist

devfat commented 5 years ago

This API works.So You can debug this codecom.alibaba.nacos.config.server.controller.ConfigServletInner#doGetConfig, then you will know why it return an exception.

wangyingwei001 commented 5 years ago

I started to install Version 1.1.1 of nacos, this API has problems, then I changed to version 1.1.0, this API is no problem, the original version of the problem.

nkorange commented 5 years ago

The result of this API depends on if you have created the configuration or not.

wangyingwei001 commented 5 years ago

Do you have your own well-integrated code that works perfectly?

柠七

邮箱:svip66666666666@126.com |

签名由 网易邮箱大师 定制

On 07/30/2019 01:02, Fury Zhu wrote:

The result of this API depends on if you have created the configuration or not.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

nkorange commented 5 years ago

Follow this guide please: https://nacos.io/zh-cn/docs/open-api.html