Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encounter errors tp add pre-function plugins with lua script content. Syntax check failed. #187

Open
nighteblis opened this issue Nov 14, 2018 · 0 comments

Comments

@nighteblis
Copy link

Issue summary

Encounter errors tp add pre-function plugins with lua script content. Syntax check failed.

Your environment

Kong node: http://kong:50001 v0.14.1 — Kong-Dashboard v3.5.0

Docker Env:
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:41:23 2017
OS/Arch: linux/amd64

Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:49 2017
OS/Arch: linux/amd64
Experimental: false

Issue description

Steps:

  1. add service
  2. add route
  3. add plugins on route
    a. pre-function
    b. return kong.response.exit(401,"error")

Check failed with giving the message "Error parsing pre-function #1: [string "return kong.response.exit(401"]:1: ')' expected near ''" , that can not add.

Expected behavior

I could add the plugins by using the admin api.

Steps to reproduce

Good to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant