ctgpf commented on issue #4529:
URL: https://github.com/apache/apisix/issues/4529#issuecomment-873831937


   Thank you for your answer! 
   
   I tried using lua-resty-http and I got an explicit error:  API disabled in 
the context of body_filter_by_lua*.
   Actually, cosocket is disabled in this context, which probably explains why 
it was blocking.
   
   In fact, my idea was to use the REST Admin API to dynamically create routes 
if I got an HTTP/200 response from an auth API upstream and I thought 
body_filter was the right context. But due to this limitation, I will change my 
logic and do the work in the access context, since cosocket is enabled there.
   
   Thank you again @spacewander!


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