MailingEventSubscribe Error
Overview
MailingEventSubscribe does result in an error message
Reproduction steps
- Check the ID of an existing mailing list group (eg. 60)
- Open API-Explorer
- Send API-Request:
$result = civicrm_api3('MailingEventSubscribe', 'create', [
'group_id' => 60,
'email' => "test@example.com",
]);
- Got Error Message:
{
"error_code": 0,
"entity": "MailingEventSubscribe",
"action": "create",
"is_error": 1,
"error_message": "Failed to find key by ID or tag (I2s19RqQP0fDuuRcyoyhUhRQiAY)"
}
Current behaviour
Error Message: "error_message": "Failed to find key by ID or tag (I2s19RqQP0fDuuRcyoyhUhRQiAY)"
Expected behaviour
Subscribe to Mailing-List
Environment information
- Browser: Firefox 59.0.1/Chrome 78.0.3904/Safari 13
- CiviCRM: 5.69.5
- PHP: 8.1
- CMS: Drupal 10.2.3
- Database: MariaDB
- Web Server: Apache