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 2020/11/24 15:47:50 UTC

[GitHub] [apisix-dashboard] idbeta edited a comment on issue #865: bug: 2.1 version schema-sync.sh display error when sync apisix's custom plugin.

idbeta edited a comment on issue #865:
URL: https://github.com/apache/apisix-dashboard/issues/865#issuecomment-733021085


   > How to reproduce?
   
   1. build the dashbaord 2.1 with source codes
   2. create a custom plugin
   3. enable the custom plugin by the `config.yaml`
   4. check whether the plugin is successfully enabled from etcd
   
   ```
   /apisix/plugins
   [... ...,{"name":"custom_plugin"}, ... ...]
   ```
   
   5. use the `schema-sync.sh` sync the schema.json
   
   ```
   api/build-tools/schema-sync.sh /my-real-path/to/apisix
   ```
   
   6. it will output the error message
   
   ```
   ... ...
   lua: ./apisix/plugins/batch-requests.lua:23: attempt to index a nil value (field 'string')
   stack traceback:
   	./apisix/plugins/batch-requests.lua:23: in main chunk
   	[C]: in function 'require'
   	schema-sync.lua:134: in main chunk
   	[C]: in ?
   ```


----------------------------------------------------------------
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.

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