Kong/kong-plugin-zipkin

error : [lua] handler.lua:28: reporter flush failed: 405 Method Not Allowed

ahai1980 opened this issue · 6 comments

Hi,
zipkin no data.
i found ther error

2018/11/22 14:18:48 [error] 2016#0: *29644324 [lua] handler.lua:28: [opentracing] reporter flush failed: 405 Method Not Allowed, context: ngx.timer, client: 218.82.139.28, server: 0.0.0.0:8000

kong version 0.14.1
thanks

What are you using as your zipkin plugin config?

{
  "created_at": 1539095832000,
  "config": {
    "sample_ratio": 1,
    "http_endpoint": "http://localhost:9411/zipkin/api/v2/spans"
  },
  "id": "1b177b37-c87f-4198-abee-3d2c0db37741",
  "name": "zipkin",
  "service_id": "d2ba6ecc-f864-4fd2-8d24-7123aa9889c5",
  "enabled": true
}

Did you get any logs coming out of your zipkin server?

i get the error
2018-11-23 11:12:49.715 WARN 5402 --- [ XNIO-1 task-34] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported]

"http_endpoint": "http://localhost:9411/zipkin/api/v2/spans"

The API is not normally under /zipkin. Perhaps you meant to use http://localhost:9411/api/v2/spans?

it works
thanks you very much!