cordero67 / openseatdirect-in-test

OpenSeatDirect Front End Production
0 stars 0 forks source link

BUG in Issue ticket bad API call #60

Open mikem20 opened 2 years ago

mikem20 commented 2 years ago

System crash when issuing ticket. To repeat login ttom39376@gmail.com and issue itickets

The API according swagger is POST https://api.openseatdirect.com/tixorder/offline_order

but log shows call to : https://api.openseatdirect.com/tixorder/offline_order/undefined

error logs:

fetching with: https://api.openseatdirect.com/tixorder/offline_order/undefined

fetching with: https://api.openseatdirect.com/tixorder/offline_order/undefined Objectbody: "{\"firstname\":\"Jim\",\"lastname\":\"Freeze\",\"email\":\"gual325@gmail.com\",\"message\":\"\",\"eventNum\":82469214075,\"totalAmount\":0,\"tickets\":[{\"key\":263645332721692,\"ticketID\":\"61fdd382287abd5c336ac85e\",\"ticketsSelected\":\"2\",\"ticketName\":\"VIP\",\"ticketPrice\":0,\"payMethod\":\"cash\",\"amt\":0},{\"key\":309344171546967,\"ticketID\":\"61fdd382287abd5c336ac85d\",\"ticketsSelected\":1,\"ticketName\":\"GA\",\"ticketPrice\":0,\"payMethod\":\"cash\",\"amt\":0}]}"headers: Headers {}method: "POST"[[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()proto: (...)get proto: ƒ proto()set proto: ƒ proto() api.openseatdirect.com/tixorder/offline_order/undefined:1 Failed to load resource: the server responded with a status of 400 () IssueTickets.js:134 inside handleErrors Response IssueTickets.js:199 freeTicketHandler() error.message: 400