You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data, err = get_url(base_uri, instance_list_path .. service_info.service_name .. token_param .. namespace_param .. group_name_param) if err then log.error('get_url:', instance_list_path, ' err:', err) if not applications then applications = up_apps end return end
The above logic for method fetch_full_registry in nacos.lua will break the loop if the previous get_url request failed. This issue can be reproduced with a wrong route with service discovery configuration.
OS (cmd: uname -a): MacOs (same with Linux, not tested)
OpenResty / Nginx version (cmd: nginx -V or openresty -V): nginx version: openresty/1.19.3.2
Steps to reproduce
Configure a route with a wrong service_name not registered in Nacos.
The fetch data request for service_name configured in 1) failed or timeout is reached, it will break the loop,
and the next requests to fetch data will be skipped but they are correctly configured.
Actual result
The next requests to fetch data will be skipped but they are correctly configured if the previous request not correctly configured or timeout reached.
Issue description
data, err = get_url(base_uri, instance_list_path .. service_info.service_name .. token_param .. namespace_param .. group_name_param) if err then log.error('get_url:', instance_list_path, ' err:', err) if not applications then applications = up_apps end return end
The above logic for method fetch_full_registry in nacos.lua will break the loop if the previous get_url request failed. This issue can be reproduced with a wrong route with service discovery configuration.
`
Environment
apisix version
): 2.9uname -a
): MacOs (same with Linux, not tested)nginx -V
oropenresty -V
): nginx version: openresty/1.19.3.2Steps to reproduce
and the next requests to fetch data will be skipped but they are correctly configured.
Actual result
The next requests to fetch data will be skipped but they are correctly configured if the previous request not correctly configured or timeout reached.
Error log
log.error('get_url:', instance_list_path, ' err:', err)
Expected result
The next requests to fetch data will be not skipped when the previous request not correctly configured or timeout reached.
The text was updated successfully, but these errors were encountered: