HttpTwo icon indicating copy to clipboard operation
HttpTwo copied to clipboard

System.FormatException in HttpTwo.Internal.DefaultLogger.write

Open m-lancieri opened this issue 4 years ago • 0 comments

Hi, I created a windows service, in C # .Net Framework 4.7.2 which uses HttpTwo.

The service works fine for a few hours, but then crashes with this stack:

Application: NotifichePushSpedizione.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.FormatException
   at System.Text.StringBuilder.FormatError()
   at System.Text.StringBuilder.AppendFormatHelper(System.IFormatProvider, System.String, System.ParamsArray)
   at System.String.FormatHelper(System.IFormatProvider, System.String, System.ParamsArray)
   at System.String.Format(System.String, System.Object[])
   at HttpTwo.Internal.DefaultLogger.write(System.String, System.Object[])
   at HttpTwo.Internal.DefaultLogger.Debug(System.String, System.Object[])
   at HttpTwo.Http2Connection+<read>d__27.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

It looks like something internal to HttpTwo

m-lancieri avatar Nov 27 '20 11:11 m-lancieri