-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Self referencing loop error #10997
Comments
Can you explain here the error you see? |
An unhandled exception occurred while processing the request. JsonSerializationException: Self referencing loop detected with type 'System.Collections.Generic.List`1[RMBSWeb.Main.Models.RmbsCertificateRate]'. Path 'data[0].RmbsPool'. |
This does not sound like error from EF Core. But I can be wrong. |
I can see the data load into the variable "Pool", but I guess when it is sending it back to the client via JSON, thats when it occurs. |
If you can see the data load ... the wonderful EF Core did its part ✅ |
Can you attach a project to reproduce this error here? |
This is incorrect |
I tried ignore, and it didn't work |
Hey guys, I found an issue with JSON, Razor Pages (Core 2) and EF (Core 2). I know all about self referencing loops and usually it can be solved with configuration. I added configuration and it did not work, I am still getting the error. Below you can see my configuration in "Startup.cs":
and when I make this simple call, I get the error:
Here are both entities involved in the call:
And the "Many" class:
The text was updated successfully, but these errors were encountered: