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/10/19 07:36:53 UTC

[GitHub] [apisix] yanshanlangren opened a new issue #2464: request help: How to define a self-develop plugin?

yanshanlangren opened a new issue #2464:
URL: https://github.com/apache/apisix/issues/2464


   ### Issue description
   I developed a sample LUA plugin.
   
   Put the .lua file under directory of `/usr/local/apisix/apisix/plugins`
   
   Add plug-in name under `plugins` in `/usr/local/apisix/conf/config.yaml`
   
   Then I reload/restart apisix, and tried to create a route within new plugin, but got hint `{"error_msg":"unknown plugin [qingcloud-auth]"}`
   
   What else do I need to do?
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): 1.5
   * OS: CentOS Linux release 7.8.2003 (Core)
   


----------------------------------------------------------------
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] spacewander closed issue #2464: request help: How to define a self-develop plugin?

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #2464:
URL: https://github.com/apache/apisix/issues/2464


   


----------------------------------------------------------------
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] yanshanlangren commented on issue #2464: request help: How to define a self-develop plugin?

Posted by GitBox <gi...@apache.org>.
yanshanlangren commented on issue #2464:
URL: https://github.com/apache/apisix/issues/2464#issuecomment-712541669


   > I will close this issue now, please follow the link above. Feel free to reopen this one.
   
   Please reopen it, my problem is not resolved. 


----------------------------------------------------------------
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] juzhiyuan commented on issue #2464: request help: How to define a self-develop plugin?

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #2464:
URL: https://github.com/apache/apisix/issues/2464#issuecomment-712168282


   I will close this issue now, please follow the link above. Feel free to reopen this one.


----------------------------------------------------------------
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] membphis commented on issue #2464: request help: How to define a self-develop plugin?

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


   here is the doc link: https://github.com/apache/apisix/blob/master/doc/plugin-develop.md
   
   hope this can help you.


----------------------------------------------------------------
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] juzhiyuan closed issue #2464: request help: How to define a self-develop plugin?

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #2464:
URL: https://github.com/apache/apisix/issues/2464


   


----------------------------------------------------------------
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] yanshanlangren commented on issue #2464: request help: How to define a self-develop plugin?

Posted by GitBox <gi...@apache.org>.
yanshanlangren commented on issue #2464:
URL: https://github.com/apache/apisix/issues/2464#issuecomment-712541307


   > here is the doc link: https://github.com/apache/apisix/blob/master/doc/plugin-develop.md
   > 
   > hope this can help you.
   
   What I've done is based on this guide, but error still occurs, Is there any further documentations? 


----------------------------------------------------------------
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] spacewander commented on issue #2464: request help: How to define a self-develop plugin?

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #2464:
URL: https://github.com/apache/apisix/issues/2464#issuecomment-775590436


   Closed as lack of 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.

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



[GitHub] [apisix] ziyou434 commented on issue #2464: request help: How to define a self-develop plugin?

Posted by GitBox <gi...@apache.org>.
ziyou434 commented on issue #2464:
URL: https://github.com/apache/apisix/issues/2464#issuecomment-714304231


   我也遇到这个问题。
   我下载了 1.5版本,其中并没有conf/config-default.yaml,只有config.yaml,在里面添加了插件,但是出现了同样的错误。
   然后我尝试自己创建一个了config-default.yaml,仍然出现{"error_msg":"invalid plugins configuration: unknown plugin [XXXX]"}


----------------------------------------------------------------
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] spacewander commented on issue #2464: request help: How to define a self-develop plugin?

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #2464:
URL: https://github.com/apache/apisix/issues/2464#issuecomment-772181967


   Does your plugin pass the validation in:
   https://github.com/apache/apisix/blob/68c4fd556c86b31d88d9c613e57c5395013a5c46/apisix/plugin.lua#L82
   
   We need a minimal fake plugin from your side to reproduce the 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