-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Error occurs on endpoints when tags
parameter is empty
#13591
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
Labels
Comments
For kong master, I could still reproduce it:
and it reported the runtime error in admin error log file:
|
Internal ticket tracking code: KAG-5496 |
3 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Kong version (
$ kong version
)Kong 2.7.1
Current Behavior
Requests with
?tags=
to the admin api results in a 500 errorKong logs
stringx.lua:32: argument 1 expected a 'string', got a 'userdata'
Expected Behavior
The API should return a valid response, such as an empty list of CA certificates or a relevant error message indicating that the tags parameter is required, if applicable. The system should handle empty tags gracefully without causing an internal server error.
Steps To Reproduce
run kong
run the curl
curl -X GET 'http://localhost:8001/ca_certificates?tags='
Anything else?
No response
The text was updated successfully, but these errors were encountered: