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
then run gateway with ./krakend-ce run -d -c config.yml. After start, if run curl localhost:8989/_health, the static response will not be returned normally. Because the configuration file is parsed incorrectly. I found that the problem is in the viper package.
This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.
Describe the bug
If use the yaml format configuration file, the nested map will not be parsed normally.
To Reproduce
then run gateway with
./krakend-ce run -d -c config.yml
. After start, if runcurl localhost:8989/_health
, the static response will not be returned normally. Because the configuration file is parsed incorrectly. I found that the problem is in the viper package.This code snippet will panic, because
cfg.Endpoints[0].ExtraConfig["github.com/devopsfaith/krakend/proxy"].(map[string]interface{})["static"]
type ismap[interface{}]interface{}
, can't convert tomap[string]interface{}
. In krakend, appear here: https://github.com/devopsfaith/krakend/blob/5e10125d6f474676256f80a99d00010fb97a9b04/proxy/static.go#L71-L74Releated issue
The text was updated successfully, but these errors were encountered: