请帮忙。
我们有一个WCF Web服务,它接受来自iOS的JSON调用。偶尔,我们会收到400 Bad Request错误。在搜索到这个错误之后,我能找到的唯一解决方案就是达到了大小限制,但是我们的调用非常小(比如小50个字符)。这种情况不是每次都会发生,通常每天只发生40-50次,但这足以引起一些重大问题。我们打开了请求跟踪,但XML没有给我们提供太多信息来调查。有谁知道是什么原因引起的?附件是请求日志文件之一。
提前致谢。
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
<EventID>0</EventID>
<Version>1</Version>
<Level>4</Level>
<Opcode>38</Opcode>
<Keywords>0x0</Keywords>
<TimeCreated SystemTime="2016-01-14T13:46:41.851Z"/>
<Correlation ActivityID="{00000000-0000-0000-A516-018000000058}"/>
<Execution ProcessID="16572" ThreadID="17048"/>
<Computer>DED2768</Computer>
</System>
<EventData>
<Data Name="ContextId">{00000000-0000-0000-A516-018000000058}</Data>
<Data Name="BytesReceived">50</Data>
<Data Name="ErrorCode">0</Data>
</EventData>
<RenderingInfo Culture="en-US">
<Opcode>GENERAL_READ_ENTITY_END</Opcode>
<freb:Description Data="ErrorCode">The operation completed successfully.
(0x0)</freb:Description>
</RenderingInfo>
<ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
</ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
<EventID>0</EventID>
<Version>1</Version>
<Level>5</Level>
<Opcode>51</Opcode>
<Keywords>0x0</Keywords>
<TimeCreated SystemTime="2016-01-14T13:46:41.851Z"/>
<Correlation ActivityID="{00000000-0000-0000-A516-018000000058}"/>
<Execution ProcessID="16572" ThreadID="17048"/>
<Computer>DED2768</Computer>
</System>
<EventData>
<Data Name="ContextId">{00000000-0000-0000-A516-018000000058}</Data>
<Data Name="Buffer">{"hub":"(null)", "co":"OCALFLXA", "eci":"CNUCAJP"}</Data>
</EventData>
<RenderingInfo Culture="en-US">
<Opcode>GENERAL_REQUEST_ENTITY</Opcode>
</RenderingInfo>
<ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
</ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASPNET" Guid="{AFF081FE-0247-4275-9C4E-021F3DC1DA35}"/>
<EventID>0</EventID>
<Version>0</Version>
<Level>5</Level>
<Opcode>11</Opcode>
<Keywords>0x2</Keywords>
<TimeCreated SystemTime="2016-01-14T13:47:10.228Z"/>
<Correlation ActivityID="{00000000-0000-0000-A516-018000000058}"/>
<Execution ProcessID="16572" ThreadID="17048"/>
<Computer>DED2768</Computer>
</System>
<EventData>
<Data Name="ConnID">0</Data>
<Data Name="Context ID">{00000000-0000-0000-A516-018000000058}</Data>
<Data Name="Data1">System.ServiceModel.Activation.HttpModule</Data>
</EventData>
<RenderingInfo Culture="en-US">
<Opcode>AspNetPipelineLeave</Opcode>
<Keywords>
<Keyword>Module</Keyword>
</Keywords>
</RenderingInfo>
<ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<EventGuid>{06A01367-79D3-4594-8EB3-C721603C4679}</EventGuid>
</ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
<EventID>0</EventID>
<Version>1</Version>
<Level>3</Level>
<Opcode>16</Opcode>
<Keywords>0x100</Keywords>
<TimeCreated SystemTime="2016-01-14T13:47:10.228Z"/>
<Correlation ActivityID="{00000000-0000-0000-A516-018000000058}"/>
<Execution ProcessID="16572" ThreadID="17048"/>
<Computer>DED2768</Computer>
</System>
<EventData>
<Data Name="ContextId">{00000000-0000-0000-A516-018000000058}</Data>
<Data Name="ModuleName">ServiceModel</Data>
<Data Name="Notification">2</Data>
<Data Name="HttpStatus">400</Data>
<Data Name="HttpReason">Bad Request</Data>
<Data Name="HttpSubStatus">0</Data>
<Data Name="ErrorCode">0</Data>
<Data Name="ConfigExceptionInfo"></Data>
</EventData>
<RenderingInfo Culture="en-US">
<Opcode>MODULE_SET_RESPONSE_ERROR_STATUS</Opcode>
<Keywords>
<Keyword>RequestNotifications</Keyword>
</Keywords>
<freb:Description Data="Notification">AUTHENTICATE_REQUEST</freb:Description>
<freb:Description Data="ErrorCode">The operation completed successfully.
(0x0)</freb:Description>
</RenderingInfo>
<ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<EventGuid>{002E91E3-E7AE-44AB-8E07-99230FFA6ADE}</EventGuid>
</ExtendedTracingInfo>
</Event>