barcodebuddy
barcodebuddy copied to clipboard
Incorrect API response due to Federation fatal error
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.