Hi @diana,
I’ve successfully configured Africa’s Talking, the message is being sent but I get an error from attempting to parse the response from AT.
2025-06-20T07:04:29.649 ERROR: Unable to JSON parse response: {
SMSMessageData: {
Message: 'Sent to 1/1 Total Cost: KES 0.8000',
Recipients: [
{
cost: 'KES 0.8000',
messageId: 'ATXid_081365ccc485678b5c0413e1795ab53e',
messageParts: 1,
number: '+254701******',
status: 'Success',
statusCode: 100
},
[length]: 1
]
}
}
From my debugging I see the issue is in the parseResponseBody . The parseResponseBody()
function in api/src/services/africas-talking.js
attempts JSON.parse()
on an already-parsed object.
Changing the function temporarily solved the issue.
if (typeof body === 'object' && body !== null) {
return body;
}