How to get upstream information inside serverless-pre-function? #11980
Replies: 1 comment
-
I found a similar unsolved discussion titled "how do I get upstream host in serverless-pre-function?" which might be relevant to your query [1]. Regarding your question, the Unfortunately, there isn't a straightforward way to access these upstream details in the If you need to work with upstream information, you might need to consider a different approach or phase where this information is available. However, based on the current capabilities, accessing upstream details directly in the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
Consider this snippet that I have for my apisix route configuration
The upstream_addr is always nil for some reason. And I also want to find upstream_host and other upstream related details here. Is it possible to perhaps pull upstream_addr, upstream_uri, upstream_host from conf or ctx parameters? Or maybe the phase attribute of rewrite is wrong? I tried the same config above with phase as access and it also gave upstream_addr as nil
Beta Was this translation helpful? Give feedback.
All reactions