Skip to content

Running example reports project throws exception #772

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

Closed
wayne-o opened this issue May 26, 2020 · 0 comments · Fixed by #773
Closed

Running example reports project throws exception #772

wayne-o opened this issue May 26, 2020 · 0 comments · Fixed by #773

Comments

@wayne-o
Copy link
Contributor

wayne-o commented May 26, 2020

Description

**fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HM019D11V3H2", Request id "0HM019D11V3H2:00000001": An unhandled exception was thrown by the application.
System.InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.Flush()
at JsonApiDotNetCore.Middleware.JsonApiMiddleware.FlushResponseAsync(HttpResponse httpResponse, JsonSerializerSettings serializerSettings, Error error) in E:\src\JsonApiDotNetCore\src\JsonApiDotNetCore\Middleware\JsonApiMiddleware.cs:line 149
at JsonApiDotNetCore.Middleware.JsonApiMiddleware.ValidateAcceptHeaderAsync(HttpContext httpContext, JsonSerializerSettings serializerSettings) in E:\src\JsonApiDotNetCore\src\JsonApiDotNetCore\Middleware\JsonApiMiddleware.cs:line 118
at JsonApiDotNetCore.Middleware.JsonApiMiddleware.Invoke(HttpContext httpContext, IControllerResourceMapping controllerResourceMapping, IJsonApiOptions options, ICurrentRequest currentRequest, IResourceGraph resourceGraph) in E:\src\JsonApiDotNetCore\src\JsonApiDotNetCore\Middleware\JsonApiMiddleware.cs:line 45
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

E:\src\JsonApiDotNetCore\src\Examples\ReportsExample\bin\Debug\netcoreapp3.1\ReportsExample.exe (process 27552) exited with code -1.**
...

Environment

Windows - netcoreapp3.1

  • JsonApiDotNetCore Version: MASTER
  • Other Relevant Package Versions:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant