[api] also emit the target on a proxy error