-
Notifications
You must be signed in to change notification settings - Fork 41
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
When SendMetrics fails and calls HandleMetricsErrorResponse it throws an exception #266
Comments
Thank you for raising this @PhbsSmn, we were able to reproduce some aspects (but not all) of this. When metrics were not recorded the SDK would send null metric buckets to Unleash, and Unleash would return a 400 Bad Request. We have a fix on the way out for this. That said we were able to see the 400 Bad Request error in the SDK when used directly towards an Unleash instance, are you using something between the SDK and Unleash? Proxy/Edge? Some kind of network gateway that could be mangling 400 responses? |
@PhbsSmn those are some big spikes indeed, I think you have a separate conversation going about that with our team, is that correct? We shipped the update to metrics, it now sends default-buckets instead of null buckets. Unleash.Client 5.0.3. Let me know if you are able to update to that and if that helps the issue. |
Got it verified in our library and it seems to like this fix 😄 |
Good to hear, thanks for getting back to us with confirmation! |
Describe the bug
Took a while to find it, the issue started acting up in our system since 2024-11-21 and was introduced by bumping to version 5.0.0
This version deprecated the custom serializers.
All our tests went fine but we didn't notice that sending back metrics started failing. With the following message:
Input string was not in a correct format. Failure to parse near offset 293. Format item ends prematurely.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It shouldn't fail trying to obtain the error but give a hint why it was not successfull instead.
Screenshots
Highlighted the issue as the response.StatusCode although not valid caused it to go to this method.
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
The text was updated successfully, but these errors were encountered: