Regular null reference exception on SSE heartbeat


I’m using SSE with the js client, and I am regularly getting SSE heart-beat calls fail with a null reference exception. This causes the client to rejoin. Any ideas why this may be happening?


[NullReferenceException: Object reference not set to an instance of an object.]
  ServiceStack.ServerEventsFeature.CanAccessSubscription(IRequest req, String subscriptionId) +85
 ServiceStack.ServerEventsHeartbeatHandler.ProcessRequestAsync(IRequest req, IResponse res, String operationName) +291
 ServiceStack.Host.Handlers.HttpAsyncTaskHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContextcontext, AsyncCallback cb, Object extraData) +106
 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +921
 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +157

Do you have v4.0.44 installed? If so upgrade to v4.0.46.

Many thanks - this fixed this.