pygrocy icon indicating copy to clipboard operation
pygrocy copied to clipboard

cant add product

Open matthew42904 opened this issue 1 year ago • 0 comments

trying to add product and i get this error: pygrocy.errors.grocy_error.GrocyError: <Response [400]>

code: `from pygrocy import Grocy

grocy = Grocy("http://xxx.xxx.xxx.xxx", "x8E9FEIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9afb1G4ufFa", port = 9192)

#for entry in grocy.stock(): #print("{} in stock for product id {}".format(entry.available_amount, entry.id))

tes = grocy.add_product_by_barcode('456789', 1, 0) tes.id == 1 tes.name == 'test'`

im able to pull stock just cant add anything

matthew42904 avatar Nov 17 '23 04:11 matthew42904