Created
May 6, 2018 13:22
-
-
Save AseedUsmani/686be1381074b60545f01e8357f536a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"code":500, | |
"success":false, | |
"message":"Not able to place order. Please try after some time", | |
"developerMessage":{ | |
"errors":{ | |
"totalPrice":{ | |
"message":"Cast to Number failed for value \"NaN\" at path \"totalPrice\"", | |
"name":"CastError", | |
"stringValue":"\"NaN\"", | |
"kind":"Number", | |
"value":null, | |
"path":"totalPrice", | |
"reason":{ | |
"message":"Cast to number failed for value \"NaN\" at path \"totalPrice\"", | |
"name":"CastError", | |
"stringValue":"\"NaN\"", | |
"kind":"number", | |
"value":null, | |
"path":"totalPrice" | |
} | |
}, | |
"products":{ | |
"message":"Cast to Array failed for value \"[{\"productId\":\"5ac6562e0911f223fdc63430\",\"name\":\"poori sabj3\",\"quantity\":3,\"price\":30},{\"productId\":\"5ae4a79d0bfd174b8e652028\",\"name\":\"poori sab\",\"quantity\":5,\"price\":30}]\" at path \"products\"", | |
"name":"CastError", | |
"stringValue":"\"[{\"productId\":\"5ac6562e0911f223fdc63430\",\"name\":\"poori sabj3\",\"quantity\":3,\"price\":30},{\"productId\":\"5ae4a79d0bfd174b8e652028\",\"name\":\"poori sab\",\"quantity\":5,\"price\":30}]\"", | |
"kind":"Array", | |
"value":"[{\"productId\":\"5ac6562e0911f223fdc63430\",\"name\":\"poori sabj3\",\"quantity\":3,\"price\":30},{\"productId\":\"5ae4a79d0bfd174b8e652028\",\"name\":\"poori sab\",\"quantity\":5,\"price\":30}]", | |
"path":"products", | |
"reason":{ | |
"message":"Cast to embedded failed for value \"\\'[{\"productId\":\"5ac6562e0911f223fdc63430\",\"name\":\"poori sabj3\",\"quantity\":3,\"price\":30},{\"productId\":\"5ae4a79d0bfd174b8e652028\",\"name\":\"poori sab\",\"quantity\":5,\"price\":30}]\\'\" at path \"products\"", | |
"name":"CastError", | |
"stringValue":"\"\\'[{\"productId\":\"5ac6562e0911f223fdc63430\",\"name\":\"poori sabj3\",\"quantity\":3,\"price\":30},{\"productId\":\"5ae4a79d0bfd174b8e652028\",\"name\":\"poori sab\",\"quantity\":5,\"price\":30}]\\'\"", | |
"kind":"embedded", | |
"value":"'[{\"productId\":\"5ac6562e0911f223fdc63430\",\"name\":\"poori sabj3\",\"quantity\":3,\"price\":30},{\"productId\":\"5ae4a79d0bfd174b8e652028\",\"name\":\"poori sab\",\"quantity\":5,\"price\":30}]'", | |
"path":"products", | |
"reason":{ | |
"message":"Parameter \"obj\" to Document() must be an object, got [{\"productId\":\"5ac6562e0911f223fdc63430\",\"name\":\"poori sabj3\",\"quantity\":3,\"price\":30},{\"productId\":\"5ae4a79d0bfd174b8e652028\",\"name\":\"poori sab\",\"quantity\":5,\"price\":30}]", | |
"name":"ObjectParameterError" | |
} | |
} | |
} | |
}, | |
"_message":"order validation failed", | |
"message":"order validation failed: totalPrice: Cast to Number failed for value \"NaN\" at path \"totalPrice\", products: Cast to Array failed for value \"[{\"productId\":\"5ac6562e0911f223fdc63430\",\"name\":\"poori sabj3\",\"quantity\":3,\"price\":30},{\"productId\":\"5ae4a79d0bfd174b8e652028\",\"name\":\"poori sab\",\"quantity\":5,\"price\":30}]\" at path \"products\"", | |
"name":"ValidationError" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment