UseFedora / raven-lua

A Lua interface to Sentry
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

" no request found" error #1

Open duckty opened 5 years ago

duckty commented 5 years ago

Hi,

I added the following snippet into init_by_lua_block

raven = require "raven"
local rvn = raven:new("https://xxxx:yyyyy@sentry.io/1308214",{       tags = { foo = "bar" },verify_ssl = false, })
local id, err = rvn:captureMessage(
      "Sentry is a realtime event logging and aggregation platform.")
    if not id then
       print(err)
    end

I masked the sentry's username and password nginx's log is showing


2018/10/25 06:49:45 [error] 1#1: init_by_lua error: /usr/local/openresty/luajit/share/lua/5.1/raven.lua:598: no request found
stack traceback:
    [C]: in function 'tcp'
    /usr/local/openresty/luajit/share/lua/5.1/raven.lua:598: in function 'http_send'
    /usr/local/openresty/luajit/share/lua/5.1/raven.lua:414: in function 'send_report'
    /usr/local/openresty/luajit/share/lua/5.1/raven.lua:366: in function 'captureMessage'
    init_by_lua:7: in main chunk```

Do you know the reason why ?

Thanks,
cuadong
duckty commented 5 years ago

the line 366 " local id, err = self:send_report(_json, conf)"