-
Notifications
You must be signed in to change notification settings - Fork 38
Description
I tried to use https://github.com/jkeys089/lua-resty-hmac but it is not working!
Getting following error
2018/05/24 17:45:17 [error] 7#7: *1 lua entry thread aborted: runtime error: /usr/local/openresty/nginx/conf/lua/resty/hmac.lua:124: attempt to get length of local 'key' (a nil value)
stack traceback:
coroutine 0:
/usr/local/openresty/nginx/conf/lua/resty/hmac.lua: in function 'new'
/usr/local/openresty/nginx/conf/lua/resty/aws_auth.lua:55: in function 'get_derived_signing_key'
/usr/local/openresty/nginx/conf/lua/resty/aws_auth.lua:106: in function 'get_authorization'
/usr/local/openresty/nginx/conf/lua/resty/aws_auth.lua:136: in function 'aws_set_headers'
/usr/local/openresty/nginx/conf/lua/resty/aws_auth.lua:147: in function 's3_set_headers'
access_by_lua(nginx.conf:124):1: in function <access_by_lua(nginx.conf:124):1> while sending to client, client: 172.30.60.26, server: , request: "GET xxx HTTP/1.1", host: "172.30.60.26"