-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request help: failed to set upstream: discovery nacos is uninitialized #4420
Comments
Hi @YangHuiFor have you configured nacos in apisix config correctly? Could you show |
|
@YangHuiFor It looks like the nacos client in APISIX was not initialized correctly, you may need to look through the error.log and found some clues about this (check out the reload/start/restart timing). |
@tokers |
Well, I mean are there any log messages that can tell us the reason what the discovery nacos can not be initialized? |
Closed as lack of response. |
please execute 'make reload' after modify conf.yaml |
I have same issue. I get this |
never mind. the discovery need in the root. |
I have the same problem 。。 |
[error] 50#50: *152 [lua] init.lua:548: handle_upstream(): failed to set upstream: discovery nacos is uninitialized |
Issue description
本地使用的apisix 2.6版本, 项配置下使用nacos服务发现。 搜索了之前的Issue没发现有类似的问题
curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
{
"uri": "/v1/*",
"upstream": {
"service_name": "APISIX-NACOS",
"type": "roundrobin",
"discovery_type": "nacos"
}
}'
请求无法通过,提示
2021/06/12 07:26:50 [error] 47#47: *213366 [lua] init.lua:470: http_access_phase(): failed to set upstream: discovery nacos is uninitialized, client: 172.20.0.1, server: _, request: "GET /v1/t HTTP/1.1", host: "127.0.0.1:9080"
Environment
使用的Mac docker环境
The text was updated successfully, but these errors were encountered: