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 09:36:39 UTC

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

idbeta opened a new issue #865:
URL: https://github.com/apache/apisix-dashboard/issues/865


   # Bug report
   
   ## Describe the bug
   2.1 version schema-sync.sh display error when sync apisix's custom plugin.
   ```
   ... ...
   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



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

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


   `batch-requests` is not a custom plugin.


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



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

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


   How to reproduce?


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



[GitHub] [apisix-dashboard] nic-chen closed issue #865: bug: 2.1 version schema-sync.sh display error when sync apisix's custom plugin.

Posted by GitBox <gi...@apache.org>.
nic-chen closed issue #865:
URL: https://github.com/apache/apisix-dashboard/issues/865


   


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



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

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


   > How to reproduce?
   
   create a custom plugin, then follow the [FAQ](https://github.com/apache/apisix-dashboard/blob/master/docs/FAQ.md#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.

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



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

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


   https://github.com/apache/apisix-dashboard/commit/cdab40954340d37c94a5e7e6fecf41a4020e2570#diff-89ff393b58f42ba20bebfddf49f17dc9652e90d21a47a10727da861c16b3fdabR110-R111
   
   fixed this issue


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



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

Posted by GitBox <gi...@apache.org>.
idbeta edited a comment on issue #865:
URL: https://github.com/apache/apisix-dashboard/issues/865#issuecomment-733021085






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



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

Posted by GitBox <gi...@apache.org>.
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



[GitHub] [apisix-dashboard] membphis closed issue #865: bug: 2.1 version schema-sync.sh display error when sync apisix's custom plugin.

Posted by GitBox <gi...@apache.org>.
membphis closed issue #865:
URL: https://github.com/apache/apisix-dashboard/issues/865


   


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



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

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


   that is a bug, confirmed.
   
   https://github.com/apache/apisix-dashboard/blob/master/api/build-tools/schema-sync.lua#L55-L56
   
   here is a way we can make a try:
   
   ```lua
   local t_idx = {
       __index = function (t, key)
           local val = {}
           rawset(t, key, val)
           return val
      end
   }
   
   package.loaded['apisix.core'] = {
       __index = t_idx
   }
   ```


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