mikyll commented on issue #12746:
URL: https://github.com/apache/apisix/issues/12746#issuecomment-3520823134

   Hi @cll1778890283 
   
   In your plugin code (file `ale-key-auth-consumer.lua`), try changing this 
line:
   
   ```lua
   local key_auth_schema = require("custom-plugin.ale-key-auth-consumer.init")
   ```
   
   to this:
   
   ```lua
   local key_auth_schema = 
require("apisix.plugins.custom-plugin.ale-key-auth-consumer.init")
   ```
   
   (actually I'd suggest to rename it just `key_auth` and then use 
`key_auth.schema` later on 🙂)
   
   ---
   
   If that still doesn't work, try changing the `config.yaml` for 
`extra_lua_path` to the one below (remove the escape character `\`):
   
   ```yaml
   apisix:
     extra_lua_path: "/usr/local/apisix/custom-plugin/?.lua"
   ```


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to