-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
OData return 500 error #6243
Comments
The detailed error log should be written to server side log file. Can you check it to see the error details? You can find it under App_Data/Logs folder of your web project. |
this is the error
|
I think the bug is about Link but the question is, how can i fix this? |
any idea? |
Hi @MohammadMobasher I couldn't be sure if this problem is related to AspNet Boilerplate or not. You can try several options like removing Include from your query or remove groupBy operation and see if it works. |
I did all of this and always appear this error. |
Could you provide a sample project so we can work on it ? |
It looks like it's having trouble grouping by Name, is Name a string, or is it an object (I thinking something with a first and last name inside it or something)? I know group by EF code has issues grouping by complex objects from past experience, you'd have to group by NameID or Name.Firstname, Name.Lastname or something along those lines if it is complex. |
@Robert-Laverick hi, the Name is just a simple string. |
hi @ismcagdas this is my entity class
the Odata controller `[DontWrapResult]
}` and my startup just like the sample in website. |
@MohammadMobasher it would be really helpful if you can share a running project which includes this problem. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
hi guys
i recently use this framework and i want to use OData. everything are ok like
and so on, but when i want to use aggregate the endpoint response 500 error without any other info, just 500 error.
my configuration is :
startup.cs
builder.EntitySet<TestTbl>("TestTbl").EntityType.Count().Filter().OrderBy().Expand().Select().Page().;
TestTblController.cs
public override IQueryable<TestTbl> Get() { return this._repository.GetAll().Include("Tenant"); }
and my url is:
/odata/testTbl?$count=true&$apply=aggregate($count as testCount)
or
/odata/testTbl?$count=true&$apply=groupby((Name),aggregate($count as Total))
on both url i got this error and i don't know what should i do? please help me
tanks
The text was updated successfully, but these errors were encountered: