Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple orders can't be created at the same time. #116

Open
ahmdfsl opened this issue Sep 27, 2016 · 1 comment
Open

Multiple orders can't be created at the same time. #116

ahmdfsl opened this issue Sep 27, 2016 · 1 comment

Comments

@ahmdfsl
Copy link

ahmdfsl commented Sep 27, 2016

Steps to Re-produce:

  • Login from two different PC.
  • Create Order at the same time.
  • Observe.

Actual Result: Both user cannot create order.
Expected Result: Both user will be able to create order.

At the same time multiple orders can't be created for same vendor using different accounts.

Request URL:http://gofetch.cloudapp.net/api/Order/
Request Method:POST
Status Code:500 Internal Server Error
Remote Address:168.63.232.131:80

Response Header:
Access-Control-Allow-Credentials:true
Access-Control-Allow-Origin:http://gofetch.cloudapp.net:8080
Content-Length:43
Content-Type:application/json; charset=utf-8
Date:Tue, 27 Sep 2016 10:09:47 GMT
Server:Microsoft-IIS/8.5
X-Powered-By:ASP.NET

Request Header:
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8,bn;q=0.6
Authorization:Bearer UYV6XqFuPNkGlbKSXTw-05H9sH1IeflAP__Iv3EilZljubZV3VTRHUEFJl3xh5pVkmUywPn5Kw9xInd40MMVfeA_PhqW4y82gAqlagM75ThU5Vz0teK_LxOKaR4KGa9-z1oBuEJxkTD6wCfH1mYjry9cqlTiGxHyqs40ju5U_POCRQQCm8pfHG8Uln0qbAnj5kBD8viKW7TQSvTyKg9ck2g_uYsb3Ud_y8w3pPCr_h3OXl0YkRCmLsKFN9I4dw3tZlKYInUkQVxADJ-TJn7fGsQhYNTcCaZEShNbVefh14THu52iR6HCUZVzsqfToK0PRK_hE2GM-9DueuWqYyYBDnTZgwniN3syVXdF1uP75BKBzeAOAV0vAODU9kOBSSnO8VXg9gGG4-NPAUxF67KoANp85dW5qU3PrtycZA9Fwdnx0qthKsk0XjX7bgD0331XMJ2uO4HYwJWsvkLyp7iiz73WlubtzZBAqhzoqPCl5gkkBa_i
Connection:keep-alive
Content-Length:851
Content-Type:application/json;charset=UTF-8
DNT:1
Host:gofetch.cloudapp.net
Origin:http://gofetch.cloudapp.net:8080
Referer:http://gofetch.cloudapp.net:8080/
User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Request Payload
view source


Payload:
{
  "NoteToDeliveryMan": "",
  "RequiredChangeFor": 0,
  "Name": null,
  "From": {
    "Address": "",
    "PostalCode": null,
    "Floor": null,
    "HouseNumber": null,
    "AddressLine1": "tongi",
    "AddressLine2": null,
    "Country": null,
    "City": "Dhaka",
    "State": null,
    "Locality": "",
    "Point": {
      "type": "Point",
      "coordinates": null
    },
    "Provider": "Default"
  },
  "To": {
    "Address": "",
    "PostalCode": null,
    "Floor": null,
    "HouseNumber": null,
    "AddressLine1": "banani",
    "AddressLine2": null,
    "Country": null,
    "City": "Dhaka",
    "State": null,
    "Locality": "",
    "Point": {
      "type": "Point",
      "coordinates": null
    },
    "Provider": "Default"
  },
  "Type": "Delivery",
  "PayloadType": "default",
  "UserId": "57c6ae236ce2b605b0757f08",
  "OrderLocation": null,
  "ETA": null,
  "ETAMinutes": null,
  "PaymentMethod": "CashOnDelivery",
  "Description": null,
  "OrderCart": {
    "PackageList": [],
    "TotalVATAmount": 0,
    "SubTotal": 0,
    "ServiceCharge": 500,
    "TotalWeight": 0,
    "TotalToPay": 0
  },
  "JobTaskETAPreference": []
}

Error:
{
  "Message": "An error has occurred."
}
@fahadwajed
Copy link
Member

fahadwajed commented Sep 27, 2016

I tried to reproduce this order with @faisalgobd. I logged in using my account from Chrome on macOS and @faisalgobd logged in using his account from Chrome on Windows 10. We successfully created 2 order for the same vendor without facing any difficulty which is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants