patzly / grocy-android

ERP beyond your fridge, now on your phone – An awesome companion app for grocy
https://patrickzedler.com/grocy/
GNU General Public License v3.0
842 stars 80 forks source link

Wrong error message when trying to add duplicate barcode #724

Closed vanMacG closed 1 year ago

vanMacG commented 1 year ago

When trying to add a barcode which is already stored for the product, the error message "Network error" is shown. Logcat: 06-14 10:14:52.020 11977 12010 E Volley : [2895] BasicNetwork.performRequest: Unexpected response code 400 for https://grocy.---.eu/api/objects/product_barcodes A more meaningful error message would be helpful. I.e. Grocy webapp: "Error while saving, probably this item already exists"