Skip to content

Running example reports project throws exception #772

Closed
@wayne-o

Description

@wayne-o

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions