Skip to content

Commit b0be016

Browse files
authored
[WS-12703] Investigate "type of result is not correct userdata" token validation errors (#80)
1 parent 9ff7d0d commit b0be016

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lua/api-gateway/validation/validator.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ function BaseValidator:getKeyFromRedis(key, hash_name)
121121
else
122122
if (type(result) == 'string') then
123123
return result
124+
elseif (result == ngx.null) then
125+
ngx.log(ngx.WARN, "The value for the key " .. tostring(key) .. " is empty")
124126
else
125127
ngx.log(ngx.WARN, "type of result is not correct " .. tostring(type(result)))
126128
end

0 commit comments

Comments
 (0)