Newtonsoft.Json: Self referencing loop detected for property 'Parent' with type 'Microsoft.Azure.Cosmos.Tracing.Trace'.
See original GitHub issueWe are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.
Describe the bug
Using continuationToken
does not work
To Reproduce
- Create an Azure Function HTTP Trigger
- Inside the Azure Function, query for a paginated collection
- Invoke the Azure Function without passing the
continuationToken
- Return the paginated result together with the
FeedResponse<T>.ContinuationToken
- Invoke the Azure Function again and pass the
continuationToken
Expected behavior This should get the next page
Actual behavior Getting the following error
System.Private.CoreLib: Exception while executing function: Some_Paginated_Function. Newtonsoft.Json: Self referencing loop detected for property ‘Parent’ with type ‘Microsoft.Azure.Cosmos.Tracing.Trace’. Path ‘Item3.Diagnostics.Value.Children[0]’.
Environment summary SDK Version: Microsoft.Azure.Cosmos v3.22.1 OS Version: MacOSX 12.0.1
Additional context Nothing else is thrown in the terminal
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
JSON.Net Self referencing loop detected
The code results in the following error: Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'CyberUser' ...
Read more >Azure Functions – Json: Self referencing loop detected for ...
Newtonsoft.Json: Self referencing loop detected for property 'task' with type 'System.Runtime.CompilerServices.
Read more >Fixing JSON Self Referencing Loop Exceptions
Json (Or JSON.NET as it's sometimes called, default for .NET Core 2.2 and lower) : JsonSerializationException: Self referencing loop detected with type.
Read more >Self referencing loop detected - Microsoft Q&A
Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'suiviBE' with type 'FollowUpDash.Shared.Models.
Read more >Self referencing loop detected for property | ASP.NET CORE ...
Fix: JsonSerializationException : Self referencing loop detected for property | ASP.NET CORE | Json. 2.5K views · 8 months ago ...more ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can we close this Issue then?
I implemented this after you replied with the reference link.
This approach worked on my end and I got the same format back.