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
After issuing a batch that succeeds (issueBatch() returns a successful response), the response fails to be parsed (batchResps.size() == 0 after processBatchResponse() is invoked). This means that requesting threads will index into batchResps and get an OutOfBounds exception. I believe the response indicates a server-side bug, and the EmbeddedSocialBatchClientImpl may want to handle 500 errors (it cannot parse them at the moment). Included below is an example of a batch request and response that causes the error.
--15f52026-8dc0-4966-8ce7-cdc5f1fdf385
Content-Type: application/http; msgtype=response
HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=utf-8
{
"message": "An error has occurred.",
"exceptionMessage": "'~/v0.7/topics/3\u0000j\u0000e\u0000E\u0000a\u0000_\u00002\u0000P\u0000o\u0000B\u0000B\u0000/comments' is not a valid virtual path.",
"exceptionType": "System.Web.HttpException",
"stackTrace": " at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)\r\n at System.Web.Hosting.MapPathBasedVirtualPathProvider.CacheLookupOrInsert(String virtualPath, Boolean isFile)\r\n at System.Web.Routing.RouteCollection.IsRouteToExistingFile(HttpContextBase httpContext)\r\n at System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext)\r\n at System.Web.Http.WebHost.Routing.HostedHttpRouteCollection.GetRouteData(HttpRequestMessage request)\r\n at System.Web.Http.Dispatcher.HttpRoutingDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at WebApiThrottle.ThrottlingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at SocialPlus.Server.WebRoleCommon.App_Start.PerformanceLoggingMessageHandler.<>n__0(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at SocialPlus.Server.WebRoleCommon.App_Start.PerformanceLoggingMessageHandler.<SendAsync>d__3.MoveNext() in c:\\dev\\sp3\\code\\Server\\WebRoleCommon\\App_Start\\PerformanceLoggingMessageHandler.cs:line 99\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.HttpServer.<SendAsync>d__0.MoveNext()"
}
--15f52026-8dc0-4966-8ce7-cdc5f1fdf385
Content-Type: application/http; msgtype=response
HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=utf-8
{
"message": "An error has occurred.",
"exceptionMessage": "'~/v0.7/topics/3\u0000j\u0000e\u0000E\u0000a\u0000Y\u00002\u0000e\u0000z\u0000Y\u0000w\u0000/comments' is not a valid virtual path.",
"exceptionType": "System.Web.HttpException",
"stackTrace": " at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)\r\n at System.Web.Hosting.MapPathBasedVirtualPathProvider.CacheLookupOrInsert(String virtualPath, Boolean isFile)\r\n at System.Web.Routing.RouteCollection.IsRouteToExistingFile(HttpContextBase httpContext)\r\n at System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext)\r\n at System.Web.Http.WebHost.Routing.HostedHttpRouteCollection.GetRouteData(HttpRequestMessage request)\r\n at System.Web.Http.Dispatcher.HttpRoutingDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at WebApiThrottle.ThrottlingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at SocialPlus.Server.WebRoleCommon.App_Start.PerformanceLoggingMessageHandler.<>n__0(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at SocialPlus.Server.WebRoleCommon.App_Start.PerformanceLoggingMessageHandler.<SendAsync>d__3.MoveNext() in c:\\dev\\sp3\\code\\Server\\WebRoleCommon\\App_Start\\PerformanceLoggingMessageHandler.cs:line 99\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.HttpServer.<SendAsync>d__0.MoveNext()"
}
--15f52026-8dc0-4966-8ce7-cdc5f1fdf385--
The text was updated successfully, but these errors were encountered:
After issuing a batch that succeeds (
issueBatch()
returns a successful response), the response fails to be parsed (batchResps.size() == 0
afterprocessBatchResponse()
is invoked). This means that requesting threads will index into batchResps and get an OutOfBounds exception. I believe the response indicates a server-side bug, and the EmbeddedSocialBatchClientImpl may want to handle 500 errors (it cannot parse them at the moment). Included below is an example of a batch request and response that causes the error.The body of the batch request was:
The body of the batch response was:
The text was updated successfully, but these errors were encountered: