You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/05 06:12:13 UTC

[GitHub] [apisix] ctgpf commented on issue #4529: request help: curl hangs indefinitely when accessing REST Admin API from Serverless plugin

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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org