Closed tareq89 closed 8 years ago
Request URL:http://taskcatdev.azurewebsites.net/api/job/57a6b46a85e54d2f78503c95/order Request Method:PUT Status Code:400 Bad Request Remote Address:104.214.29.203:80 Access-Control-Allow-Credentials:true Access-Control-Allow-Origin:http://127.0.0.1:8080 Content-Length:2845 Content-Type:application/json Date:Sun, 07 Aug 2016 04:31:50 GMT Server:Microsoft-IIS/8.0 Set-Cookie:ARRAffinity=d5baaa4af13ed7a15d133cc9fb3175ad57c46ec6cfd3ea7a639bbc0f442a6612;Path=/;Domain=taskcatdev.azurewebsites.net X-Powered-By:ASP.NET Accept:application/json, text/plain, */* Accept-Encoding:gzip, deflate, sdch Accept-Language:en-US,en;q=0.8,bn;q=0.6 Authorization:Bearer k-VYwt_rO7_d-APBs07X8hdHNsheWi65DI4B457_JAM0K-jRq-B33PrQOSShM9dcaosieowaZLfGMFvST4iVcqrvbjoJZ-cK3qCk6maLmc6bRiRyEf8pPgi9gOI-l1s_xzOLb5h-cq15vcryiL2u8_uHyLQmOZObxyApLivrUoLVq_Bc9ENTtAhkkpYoHY4FsofG3saytJus_diLtLz1AhNbZ5S3CcORcmxkYYT6QAK6Ix9dBOluVpPF26T423iSXjCud1Qxz7cVeNeyB6hyZoYOaCC-VSEo0Mtz35bcG5n0GoIP4VifRsbWusM40KeeZCcBm9Tl5rGchYz9s05xN23c1PJPNB1TJojY-osHLVyS2JhFGZL6ePCoA_6oRSPh8vP_JHda3Zke6wMV0qemlIOtKMAxiusEOJyxzCYAraIfTlky5_c9EGjkHnVMmOUbt0h5jufdPZ8hjoXDugXew_wb8nzLFjk-zINdvY88aU3jx6MCCfl1hcp6bOdH9RxbBVOi0Q Connection:keep-alive Content-Length:1241 Content-Type:application/json;charset=UTF-8 DNT:1 Host:taskcatdev.azurewebsites.net Origin:http://127.0.0.1:8080 Referer:http://127.0.0.1:8080/ User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36 { "NoteToDeliveryMan": "", "RequiredChangeFor": 0, "Name": "Real Classified", "From": { "Address": "asd, Dhaka", "PostalCode": null, "Floor": null, "HouseNumber": null, "AddressLine1": "asd", "AddressLine2": null, "Country": null, "City": "Dhaka", "State": null, "Locality": "", "Point": { "type": "Point", "coordinates": null }, "Provider": "Default" }, "To": { "Address": "asd, Dhaka", "PostalCode": null, "Floor": null, "HouseNumber": null, "AddressLine1": "asd", "AddressLine2": null, "Country": null, "City": "Dhaka", "State": null, "Locality": "", "Point": { "type": "Point", "coordinates": null }, "Provider": "Default" }, "Type": "ClassifiedDelivery", "PayloadType": "default", "UserId": "578db58985e54d1ae095313f", "OrderLocation": null, "ETA": "2016-09-19T18:00:00.000Z", "ETAMinutes": null, "PaymentMethod": "CashOnDelivery", "Description": null, "OrderCart": { "PackageList": [], "TotalVATAmount": 0, "SubTotal": 0, "ServiceCharge": 0, "TotalWeight": 0, "TotalToPay": 0 }, "JobTaskETAPreference": [ { "Type": "PackagePickUp", "ETA": "2016-08-25T18:00:00.000Z" }, { "Type": "Delivery", "ETA": "2016-08-25T18:00:00.000Z" } ] } ERROR: { "ClassName": "System.NotSupportedException", "Message": "Cant update order when secure delivery is in progress", "Data": null, "InnerException": null, "HelpURL": null, "StackTraceString": " at TaskCat.Lib.Job.Updaters.DeliveryJobUpdater.UpdateJob(OrderModel order)\r\n at TaskCat.Lib.Job.JobRepository.<UpdateOrder>d__10.MoveNext()\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 TaskCat.Controller.JobController.<UpdateOrder>d__14.MoveNext()\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.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()\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.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.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\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.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\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.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()", "RemoteStackTraceString": null, "RemoteStackIndex": 0, "ExceptionMethod": "8\nUpdateJob\nTaskCat, Version=0.1.3.60, Culture=neutral, PublicKeyToken=null\nTaskCat.Lib.Job.Updaters.DeliveryJobUpdater\nVoid UpdateJob(TaskCat.Data.Model.OrderModel)", "HResult": -2146233067, "Source": "TaskCat", "WatsonBuckets": null }
Background: