You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting, the fix is available in the CI NuGet feed https://ci.appveyor.com/nuget/hangfire in version 1.7.0-build-02847. 1.7.1 will be released later just in case there are other bugs, meanwhile please allow the sync IO or use version from CI feed (and please let me know about the results).
Hi,
I migrated app to netcoreapp3.0 and AllowSynchronousIO is set false by default.
When dashboard is trying get resource, exception will throw.
InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.
Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.Write(byte[] buffer, int offset, int count) System.IO.Stream.CopyTo(Stream destination, int bufferSize) System.IO.Stream.CopyTo(Stream destination) Hangfire.Dashboard.EmbeddedResourceDispatcher.WriteResource(DashboardResponse response, Assembly assembly, string resourceName) Hangfire.Dashboard.CombinedResourceDispatcher.WriteResponse(DashboardResponse response) Hangfire.Dashboard.EmbeddedResourceDispatcher.Dispatch(DashboardContext context) Hangfire.Dashboard.AspNetCoreDashboardMiddleware.Invoke(HttpContext httpContext) Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext) Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.Invoke(HttpContext httpContext) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
dotnet/aspnetcore#4774
https://www.strathweb.com/2019/02/be-careful-when-manually-handling-json-requests-in-asp-net-core/
Hangfire v1.7.0
The text was updated successfully, but these errors were encountered: