Skip to main content
The First Step
Jun 1, 2022 2:10 PM UTC
Question

.NET Core restClient.Authorize "A possible object cycle was detected."

Platform is C# Blazor .net core:

When requesting authorization for a RestClient an exception occurs from System.Text.Json.JsonException "A possible object cycle was detected."

I created a winform app and it works great but when implementation is in Blazor project the above exception occurs.


TIA,

Richard

2 replies

The First Step
Jun 1, 2022 2:59 PM UTC

Well created a test project using .net core 5 winforms and it works fine.

So this led to further testing and it seems RingCentral SDK doesn't like dependency injection.

Employee
Jun 1, 2022 3:18 PM UTC

Could you please provide a sample project to reproduce the issue? Especially how to use dependency injection to trigger the issue. Thanks