Why am I getting this error Please

how can i resolve this error. May I know how?
{
“statusCode”: 400,
“body”: “{“error”:“CustomMessage failed with error str expected, not tuple.”}”
}

That’s an issue with the data type. string was expected but a tuple was received.
If you can give a bit more context it would be useful.