->message->firstLine of type object, but the function expects a string