Seems to fail because it's expecting a supplier to exist which is odd since this is a B2C configuration. I ran this twice to rule out the chance that it was a transient network error.
The following is the output of running the command.
Request method: POST
Request url: https://sandboxapi.ordercloud.io/v1/catalogs
Request data: {"ID":"solitary-storefront","OwnerID":"simple-B2C-starter","Name":"Solitary Storefront ","Description":"Default catalog for Solitary Storefront ","Active":true,"CategoryCount":15,"xp":null}
Response status: 404
Response data: {
ErrorCode: 'NotFound',
Message: 'Object not found.',
Data: { ObjectType: 'Supplier', ObjectID: 'simple-B2C-starter' }
}
(node:52768) UnhandledPromiseRejectionWarning: OrderCloudError
at new OrderCloudError (C:\Users\CrhistianR\AppData\Roaming\npm-cache_npx\52768\node_modules\@ordercloud\seeding\node_modules\ordercloud-javascript-sdk\dist\index.js:126:24)
at C:\Users\CrhistianR\AppData\Roaming\npm-cache_npx\52768\node_modules\@ordercloud\seeding\node_modules\ordercloud-javascript-sdk\dist\index.js:7636:43
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:52768) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:52768) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I figured out this was caused by the platform release on 6/21. It doesn't appear since that was rolled back. I'll leave the issue open though for when that release is attempted again.
Seems to fail because it's expecting a supplier to exist which is odd since this is a B2C configuration. I ran this twice to rule out the chance that it was a transient network error.
The following is the output of running the command.