Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type cast error because of "remainingBackends" #27

Open
hslee1064 opened this issue Jun 21, 2024 · 3 comments
Open

Type cast error because of "remainingBackends" #27

hslee1064 opened this issue Jun 21, 2024 · 3 comments

Comments

@hslee1064
Copy link

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

After I applying this policy to APIM it cause errors when it try to loadbalance to other endpoints.
https://github.com/Azure-Samples/openai-apim-lb/blob/main/apim-policy.xml

Any log messages given by the failure

[{"elapsed":313,"source":"retry","reason":"ExpressionValueEvaluationFailure","message":"Expression evaluation failed. Unable to cast object of type 'System.Int32' to type 'System.String'.","scope":"operation","section":"backend"}]

Expected/desired behavior

There seems to be an issue with #26.
It occured type cast error because of "remainingBackends".

OS and Version?

Ubuntu 22.04

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@jgbradley1
Copy link

I am also experiencing this type cast issue

@jgbradley1
Copy link

I tested the changes proposed in this PR and the errors went away for me. Hope that PR gets merged soon.

@vandriot
Copy link

Hello,

This is the same issue as in #29
I proposed another solution in the comment.

But the fix from #18 is working as well 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants