Kong / kong

🦍 The Cloud-Native API Gateway and AI Gateway.
https://konghq.com/install/#kong-community
Apache License 2.0
39.17k stars 4.8k forks source link

File named `api.lua` in the custom lua plugin directory causes 500 API Admin errors for kong manager #13438

Closed svyatoslavratov closed 2 months ago

svyatoslavratov commented 2 months ago

Is there an existing issue for this?

Kong version ($ kong version)

3.6.1

Current Behavior

Expected Behavior

Steps To Reproduce

  1. Create custom lua plugin with file api.lua inside (also schema.lua, handler.lua)
  2. Add this plugin to kong.conf (make lua_package_path and add to plugins)
  3. Launch kong and go to kong manager (http://localhost:8002 or send request to http://localhost:8001)

P.S. It is not necessary to include the plugin in kong.yml of the service or globally

Anything else?

joelact commented 2 months ago

Hey @svyatoslavratov! I think if the file api.lua file is empty the kong manager api will not work. I don't know if this is the case.

Can you share a snippet of your file?

chobits commented 2 months ago

hi @svyatoslavratov could you share your api.lua file, and make it as small as possible, which is easy for us to troubleshoot

github-actions[bot] commented 2 months ago

This issue is marked as stale because it has been open for 14 days with no activity.

github-actions[bot] commented 2 months ago

Dear contributor,

We are automatically closing this issue because it has not seen any activity for three weeks. We're sorry that your issue could not be resolved. If any new information comes up that could help resolving it, please feel free to reopen it.

Your contribution is greatly appreciated!

Please have a look our pledge to the community for more information.

Sincerely, Your Kong Gateway team