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
Hi,
I added the following snippet into init_by_lua_block
I masked the sentry's username and password nginx's log is showing