You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/12/13 04:44:21 UTC

[GitHub] [apisix-dashboard] jagerzhang opened a new issue, #2691: dashboard can not start when a custom discovery plugins enabled

jagerzhang opened a new issue, #2691:
URL: https://github.com/apache/apisix-dashboard/issues/2691

   ### Issue description
   
   我们给APISIX集成了一个内部的服务发现插件,插件配置格式如下:
   ```
    "discovery_type": "polaris",
     "discovery_args": {
               "namespace": "Production",
               "metadata": {},
               "metadata_router": "ruleBasedRouter"
     }
   ```
   目前已经正常在生产环境使用,但是启用这个插件且给上游如上配置之后,dashboard无法启动,报错为:
   ```
   2022-12-13T04:40:13.088Z	ERROR	store/store.go:370	json unmarshal failed: json: cannot unmarshal object into Go struct field Upstream.discovery_args of type string
   2022-12-13T04:40:13.088Z	ERROR	store/storehub.go:73	GenericStore init error: json unmarshal failed
   	Related Key:		ibn_archi_gns3
   	Error Description:	json: cannot unmarshal object into Go struct field Upstream.discovery_args of type string
   2022-12-13T04:40:13.088Z	ERROR	server/store.go:32	init stores fail: %!w(*errors.errorString=&{json unmarshal failed
   	Related Key:		ibn_archi_gns3
   	Error Description:	json: cannot unmarshal object into Go struct field Upstream.discovery_args of type string})
   2022-12-13T04:40:13.088Z	ERROR	cmd/root.go:79	The Manager API server start failed: json unmarshal failed
   	Related Key:		ibn_archi_gns3
   	Error Description:	json: cannot unmarshal object into Go struct field Upstream.discovery_args of type string
   Error occurred while initializing logical store:  /apisix-guangzhou/upstreams
   Error: json unmarshal failed
   	Related Key:		ibn_archi_gns3
   	Error Description:	json: cannot unmarshal object into Go struct field Upstream.discovery_args of type string
   Usage:
     manager-api [flags]
     manager-api [command]
   
   Available Commands:
     help        Help about any command
     version     show manager-api version
   
   Flags:
     -c, --config string     config file
     -h, --help              help for manager-api
     -p, --work-dir string   current work directory (default ".")
   
   Use "manager-api [command] --help" for more information about a command.
   
   json unmarshal failed
   	Related Key:		ibn_archi_gns3
   	Error Description:	json: cannot unmarshal object into Go struct field Upstream.discovery_args of type string
   ```
   
   
   看起来类似于schema校验失败的问题,求问下修复方法,多谢~
   
   ### Expected behavior
   
   None
   
   ### How to Reproduce
   
   None
   
   ### Screenshots
   
   _No response_
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `etcd --version`):
   - apisix-dashboard version, if have:
   - Browser version, if have:
   
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] Baoyuantop commented on issue #2691: dashboard can not start when a custom discovery plugins enabled

Posted by GitBox <gi...@apache.org>.
Baoyuantop commented on issue #2691:
URL: https://github.com/apache/apisix-dashboard/issues/2691#issuecomment-1398026131

   Hi @jagerzhang, have you tried to synchronize schema information? You can refer here https://apisix.apache.org/docs/dashboard/FAQ/#4-after-modifying-the-plugin-schema-or-creating-a-custom-plugin-in-apache-apisix-why-cant-i-find-it-on-the-dashboard


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org