question

billy-watkins avatar image
billy-watkins asked Raymond Lee Deactivated edited

Client Exception when creating category using sdk

We are trying to create items and assign them to a new category using the sdk.
However we are having issues when creating a new category without a helpful error message

Category newCategory = new Category();
newCategory.setName("TokenPrinter");
mInventoryConnector.createCategory(newCategory);

this throws a client exception:
statusCode = UNKNOWN; 
statusMessage = null
if instead I use:

Category newCategory = new Category();
mInventoryConnector.createCategory(newCategory);
this throws a client exception
statusCode = 400; 
statusMessage = Invalid category:Name is required to be non-null

But as you can see from the first attempt providing a name does not resolve the issue and there is no follow up message.

Any Light you can shed on this would be appreciated.

Clover Android SDKInventory
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

Welcome to the
Clover Developer Community