{"action":"closed","issue":{"url":"https://api.github.com/repos/OXXAS/CommerceStarterKit/issues/18","labels_url":"https://api.github.com/repos/OXXAS/CommerceStarterKit/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/OXXAS/CommerceStarterKit/issues/18/comments","events_url":"https://api.github.com/repos/OXXAS/CommerceStarterKit/issues/18/events","html_url":"https://github.com/OXXAS/CommerceStarterKit/issues/18","id":54868555,"number":18,"title":"Wishlist fails when empty","user":{"login":"evest","id":6423464,"avatar_url":"https://avatars.githubusercontent.com/u/6423464?v=3","gravatar_id":"","url":"https://api.github.com/users/evest","html_url":"https://github.com/evest","followers_url":"https://api.github.com/users/evest/followers","following_url":"https://api.github.com/users/evest/following{/other_user}","gists_url":"https://api.github.com/users/evest/gists{/gist_id}","starred_url":"https://api.github.com/users/evest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evest/subscriptions","organizations_url":"https://api.github.com/users/evest/orgs","repos_url":"https://api.github.com/users/evest/repos","events_url":"https://api.github.com/users/evest/events{/privacy}","received_events_url":"https://api.github.com/users/evest/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OXXAS/CommerceStarterKit/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-20T10:49:58Z","updated_at":"2015-04-20T21:59:17Z","closed_at":"2015-04-20T21:59:17Z","body":"When the wishlist is empty, the loading image just keeps spinning, and the angular call fails with:\r\n\r\n```\r\n{\"Message\":\"An error has occurred.\",\"ExceptionMessage\":\"ArgumentOutOfRange_Index\r\nParameter name: index\",\"ExceptionType\":\"System.ArgumentOutOfRangeException\",\"StackTrace\":\"   \r\n   at Mediachase.Commerce.Storage.StorageCollectionBase.System.Collections.IList.get_Item(Int32 index)\r\n   at Mediachase.Commerce.Storage.MetaStorageCollectionBase`1.get_Item(Int32 index)\r\n   at OxxCommerceStarterKit.Core.Services.CartService.UpdateShipping(String name) in s:\\\\buildAgent-work\\\\OxxStarterKitGit\\\\src\\\\common\\\\Core\\\\Services\\\\CartService.cs:line 263\r\n   at OxxCommerceStarterKit.Web.Api.CartController.GetCart(String cart) in s:\\\\buildAgent-work\\\\OxxStarterKitGit\\\\src\\\\web\\\\Api\\\\CartController.cs:line 65\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\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.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\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.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\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.Dispatcher.HttpControllerDispatcher.<SendAsync>d__0.MoveNext()\"}\r\n```\r\nThe call goes is missing the language:\r\n`/undefined/api/cart/getCart?_=1421750723692&cart=WishList`\r\nExpected: \r\n`/en/api/cart/getCart?_=1421750723692&cart=WishList`\r\n"}}