Skip to content

Incorrect API response due to Federation fatal error #288

@wjarka

Description

@wjarka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions