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

Getting the schema of the "datadog" plugin does not produce a JSON response #3949

Closed
lmika opened this issue Nov 5, 2018 · 2 comments
Closed

Comments

@lmika
Copy link

lmika commented Nov 5, 2018

Summary

Attempting to get the schema of the "datadog" plugin when calling the "/plugins/schema/datadog" endpoint on the admin API directly returns a 200 OK response but without a JSON body:

$ curl -v http://localhost:8001/plugins/schema/datadog
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8001 (#0)
> GET /plugins/schema/datadog HTTP/1.1
> Host: localhost:8001
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Mon, 05 Nov 2018 01:19:07 GMT
< Content-Type: application/json
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Server: kong/1.0.0rc2
< Content-Length: 0
< 
* Connection #0 to host localhost left intact

The following message is produced within the Kong error logs:

2018/11/05 01:19:07 [debug] 4887#0: *32 [lua] init.lua:307: No API endpoints loaded for plugin: statsd
2018/11/05 01:19:07 [debug] 4887#0: *32 [lua] init.lua:299: Loading API endpoints for plugin: prometheus
2018/11/05 01:19:07 [debug] 4887#0: *32 [lua] init.lua:307: No API endpoints loaded for plugin: request-termination
2018/11/05 01:19:07 [error] 4887#0: *32 [lua] responses.lua:160: [admin] could not encode value: Cannot serialise number: must not be NaN or Infinity, client: 10.0.2.2, server: kong_admin, request: "GET /plugins/schema/datadog HTTP/1.1", host: "localhost:8101"
2018/11/05 01:19:07 [info] 4887#0: *32 client 10.0.2.2 closed keepalive connection

This happens on a vanilla instance of Kong 1.0.0rc2, running with PostgreSQL on Linux with only the bundled plugins preloaded.

Steps To Reproduce

  1. Install Kong Community Edition ver. 1.0.0rc2 from the CentOS 6 RPM
  2. Set plugins = bundled in Kong configuration
  3. Initialise DB and start Kong
  4. Run curl http://localhost:8001/plugins/schema/datadog

Additional Details & Logs

@julienlau
Copy link

julienlau commented Nov 29, 2018

Any idea on how to manually solve this ?
Is this linked to some value stored into postgres ?

@hishamhm
Copy link
Contributor

Fixed in #4162 — thanks for reporting!

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

3 participants