✅ I get Internal Server Error when uses Include
In this code I get InternalServerError. Also if I use Include instead of whole this code, then I get InternalServerError again
7 Replies
But if I comment all lines except 5th line (car product ...) then code works perfectly
the actual exception would be useful.
actual exception?
yes, your code is throwing an exception and it causes your API to return a 500
500 is just the error shown to the client, something more specific is going wrong
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
services.AddControllersWithViews().AddNewtonsoftJson(options =>
options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore
);
I added this code and it works now
Thanks for your time
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View