-
Notifications
You must be signed in to change notification settings - Fork 48
Description
ServiceControl Team,
We have been experiencing issues with ServiceControl where the XML tab of the body is blank but the Hex tab is not. When this occurs we receive the following error in the Log tab.
2014-08-25 10:27:37.362 -04:00 [Information] HTTP GET http://SHSDSH-AUDT01T:33333/api/messages/055df7d5-ea59-4c5f-9241-a392009c818d/body
2014-08-25 10:27:37.388 -04:00 [Error] Error executing the request: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host., Status code is 0
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.GZipWrapperStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at RestSharp.Extensions.MiscExtensions.ReadAsBytes(Stream input)
at RestSharp.Http.ProcessResponseStream(Stream webResponseStream, HttpResponse response)
at RestSharp.Http.ExtractResponseData(HttpResponse response, HttpWebResponse webResponse)
at RestSharp.Http.GetResponse(HttpWebRequest request)
Note that I also tried this using version 1.1 and 1.7 and we get the same results. It is curious that the Hex tab is populated. Also the flow diagram and header tabs are populated correctly. Note we are using the default xml serializer in our end points. This is impacting our ability to trouble shoot issues, any assistance you can provide would be greatly appreciated. On a side note, it would be a nice if the Hex view had the ability to copy the hex values as well as the resulting text to the clip board. This would be handy and would be a work around when there are issues using the xml tab. Lastly, and perhaps most importantly, I believe the issue has to deal with they way we are sending our messages or what you are expecting the payload to be. Let me explain. We have a command class called EventCommand that we send to our dedicated publisher service. The event command takes has two properties and EventPayload and an EventPayloadTypeName. The EventPayload gets populated with a s serialized object that implements NServiceBus.IEvent and EventPayloadTypeName represents the type of the object that was assigned to EventPayload. Basically, we are bundling up events that we want to publish but are sending them to a publisher service where they are deserialize and ultimately published via Bus.Publish. I thought is that there is an issue with the serialization on our side or service insights. For what it is worth the messages show up perfectly in Cogin Queue Explore and obviously we are able to publish them which has been working for a year now. I attached an example .mq and the code we are using - any assistance would be greatly appreciated.
Looks like you do not support uploading code or .mq so I will dumped some screen shots.



{