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
When failed to get response from ReloadDeclarativeConfig in dbless mode, for example when the client timed out to wait for the response, we will get a nil for response, and try to parse it as a resource parsing error. This causes log
level=error msg="failed parsing resource errors" error="could not unmarshal config error: unexpected end of JSON input"
which is misleading.
Expected Behavior
When failed to get response from ReloadDeclarativeConfig, we do not see the misleading error could not unmarshal.
Steps To Reproduce
1. Deploy KIC & Kong gateway, and set CONTROLLER_PROXY_TIMEOUT_SECONDS to a short duration (like 1 for 1 second)
2. create many ingresses to generate a configuration with large size
3. When the reloading configuration fails, we will see "could not unmarshal config error: unexpected end of JSON input" in KIC log
Kong Ingress Controller version
v2.11.1
Kubernetes version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
randmonkey
changed the title
When failed to get response from ReloadDeclarativeConfig, the failure reason is always "could not unmarshal config error: unexpected end of JSON input"
When failed to get response from ReloadDeclarativeConfig, log "could not unmarshal config error: unexpected end of JSON input" will appear
Sep 14, 2023
Is there an existing issue for this?
Current Behavior
When failed to get response from
ReloadDeclarativeConfig
in dbless mode, for example when the client timed out to wait for the response, we will get anil
for response, and try to parse it as a resource parsing error. This causes logwhich is misleading.
Expected Behavior
When failed to get response from
ReloadDeclarativeConfig
, we do not see the misleading errorcould not unmarshal
.Steps To Reproduce
Kong Ingress Controller version
Kubernetes version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: