question

Richard Rooks avatar image
Richard Rooks asked Tyler Liu answered

.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

sdk
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Richard Rooks avatar image
Richard Rooks answered

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.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered

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

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys