slene commented on issue #4516:
URL: https://github.com/apache/apisix/issues/4516#issuecomment-872669982


   @spacewander 
   
   I think that value does not exist is not an error. The log should be 
recorded when err exists.
   
   ```
   local value = ctx.var["cookie_upstream"]
   if value then
       -- do something
   end
   ```
   
   ```
   2021/07/01 19:30:06 [warn] 46#46: *2782 [lua] ctx.lua:157: __index(): failed 
to fetch cookie value by key: cookie_upstream error: nil, client: 127.0.0.1, 
server: _, request: "GET / HTTP/1.1", host: "localhost:9181"
   ```
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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


Reply via email to