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

error when run with kong 0.13 #14

Closed
steinliber opened this issue May 28, 2018 · 1 comment
Closed

error when run with kong 0.13 #14

steinliber opened this issue May 28, 2018 · 1 comment

Comments

@steinliber
Copy link

When run this plugin in kong 0.13, report error below

2018/05/28 04:00:07 [debug] 45#0: *5121028 [lua] logger.lua:81: log(): Prometheus: logging metrics...
2018/05/28 04:00:07 [error] 45#0: *5121028 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/kong/plugins/prometheus/logger.lua:87: bad argument #1 to 'string_gsub' (string expected, got nil)
stack traceback:
coroutine 0:
[C]: in function 'string_gsub'
/usr/local/share/lua/5.1/kong/plugins/prometheus/logger.lua:87: in function 'log'
.../local/share/lua/5.1/kong/plugins/prometheus/handler.lua:21: in function <.../local/share/lua/5.1/kong/plugins/prometheus/handler.lua:16>, context: ngx.timer, client: 192.168.141.0, server: 0.0.0.0:8000
2018/05/28 04:00:07 [info] 45#0: *5121026 client 192.168.141.0 closed keepalive connection

@yciabaud
Copy link
Owner

Hello, we pointed out this in #13, we need to update the plugin to managethe breaking changes introduced in Kong 0.13.

It will not work without these changes.
I close this issue but we can discuss it furthermore in #13.

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

2 participants