barcodebuddy icon indicating copy to clipboard operation
barcodebuddy copied to clipboard

Incorrect API response due to Federation fatal error

Open wjarka opened this issue 2 months ago • 0 comments

When I query the API with a barcode that falls back to Federation - I get this as a response:

<b><spanstyle="color: red;">ConnectionlimitsexceededforBarcodeBuddyFederation.</span>PleasecheckyourURLandAPIkeyinthesettingsmenu!</b>{
	"data": {
		"result": "Unknown barcode could not be looked up. [123]"
	},
	"result": {
		"result": "OK",
		"http_code": 200
	}
}

For the API call - it should fail silently without actually printing the HTML output.

This is due to how saveError handle fatals in db.inc.php.

wjarka avatar Dec 02 '25 10:12 wjarka