Baoyuantop commented on issue #13456:
URL: https://github.com/apache/apisix/issues/13456#issuecomment-4599709989

   Thanks for the detailed report. This looks like a real bug in 
`ai-proxy-multi` when it is used through `plugin_config_id`.
   
   The reported behavior matches the current code path:
   
   1. When `ai-proxy-multi` has only one instance, it directly selects that 
instance and does not fetch the parent config, so the single-instance case 
works.
   2. When it has multiple instances, it enters the balancer path and calls 
`resource.fetch_latest_conf(conf._meta.parent.resource_key)`.
   3. For a plugin configured via `plugin_config_id`, the parent resource key 
is `/plugin_configs/<id>`.
   4. `resource.fetch_latest_conf` currently supports `upstreams`, `routes`, 
`services`, and `stream_routes`, but not `plugin_configs`. So it logs 
`unsupported resource type: plugin_configs`, returns nil, and `ai-proxy-multi` 
returns `failed to fetch the parent config` with 503.
   
   As a temporary workaround, please configure `ai-proxy-multi` directly on the 
Route instead of referencing it through `plugin_config_id`.


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