idbeta commented on issue #646:
URL: 
https://github.com/apache/apisix-dashboard/issues/646#issuecomment-723820193


   > > @thekingofworld We have reproduced this problem in the local 
environment, thank you for your feedback.
   > 
   > do you find an easier way to reproduce this issue? or as the reporter?
   
   make a plugin with reference to example-plugin to reproduce the problem, 
update schema.json with `schema-sync.sh`  and it will report an error
   ```
   --2020-11-06 19:47:50--  https://github.com/apache/apisix/archive/2.0.zip
   ...
   ...
   200 OK
   ...
   ...
   Archive:  2.0.zip
     End-of-central-directory signature not found.  Either this file is not
     a zipfile, or it constitutes one disk of a multi-part archive.  In the
     latter case the central directory and zipfile comment will be found on
     the last disk(s) of this archive.
   unzip:  cannot find zipfile directory in one of 2.0.zip or
           2.0.zip.zip, and cannot find 2.0.zip.ZIP, period.
   mv: rename ./apisix-2.0/apisix/* to ./api/build-tools/apisix/*: No such file 
or directory
   lua: schema-sync.lua:89: module 'apisix.schema_def' not found:
        no field package.preload['apisix.schema_def']
        no file '/usr/local/share/lua/5.3/apisix/schema_def.lua'
        no file '/usr/local/share/lua/5.3/apisix/schema_def/init.lua'
        no file '/usr/local/lib/lua/5.3/apisix/schema_def.lua'
        no file '/usr/local/lib/lua/5.3/apisix/schema_def/init.lua'
        no file './apisix/schema_def.lua'
        no file './apisix/schema_def/init.lua'
        no file '/usr/local/lib/lua/5.3/apisix/schema_def.so'
        no file '/usr/local/lib/lua/5.3/loadall.so'
        no file './apisix/schema_def.so'
        no file '/usr/local/lib/lua/5.3/apisix.so'
        no file '/usr/local/lib/lua/5.3/loadall.so'
        no file './apisix.so'
   stack traceback:
        [C]: in function 'require'
        schema-sync.lua:89: in main chunk
        [C]: in ?
   sync success:
   /Users/idbeta/1106/apisix-dashboard/api/conf/schema.json
   ```


----------------------------------------------------------------
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:
[email protected]


Reply via email to