zjyang997 opened a new issue #1681:
URL: https://github.com/apache/incubator-apisix/issues/1681


   ### Issue description
   Error accessing the skyWalking plugin enabled routing interface
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):master
   * OS:CentOS7
   
   ### Minimal test code / Steps to reproduce the issue
   1.open the SkyWalking plug-in on route
   2.The URI in the request route
   3.Error 500 and log an error
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   2020/06/10 10:56:58 [error] 4933#4933: *9600 lua entry thread aborted: 
runtime error: /usr/local/apisix/apisix/plugins/skywalking/tracer.lua:36: 
attempt to index local 'tracing_buffer' (a nil value)
   stack traceback:
   coroutine 0:
        /usr/local/apisix/apisix/plugins/skywalking/tracer.lua: in function 
'start'
        /usr/local/apisix/apisix/plugins/skywalking.lua:62: in function 
'phase_fun'
        /usr/local/apisix/apisix/init.lua:144: in function 'run_plugin'
        /usr/local/apisix/apisix/init.lua:373: in function 'http_access_phase'
        access_by_lua(nginx.conf:168):2: in main chunk, client: 192.168.32.136, 
server: , request: "GET /test HTTP/1.0", host: "192.168.32.136:9080"
   2020/06/10 10:57:02 [error] 4931#4931: *9789 [lua] timer.lua:37: failed to 
run the timer: skywalking_heartbeat err: 
/usr/local/apisix/apisix/plugins/skywalking/client.lua:31: attempt to index 
local 'tracing_buffer' (a nil value), context: ngx.timer, client: 
192.168.32.136, server: 0.0.0.0:9080
   
![image](https://user-images.githubusercontent.com/57751233/84223236-09c3b700-ab0c-11ea-8367-19624305bfb7.png)
   
   
   
   ### What's the expected result?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to