Error retrieving SMS via api

When trying to access endpoint

/v2/phone/sms/sessions

i get

{
“code”: 7012,
“message”: “Error retrieving SMS.”
}

It seems no matter what SMS endpoint i try and access i get this message. Is there something im missing?

Figured this out. So this was a parameter issue. I had page_size 300 which was causing the error, removing it or changing it to 100 returned values, same for /phone/sms/sessions had to remove from to and it returned data.

It would be nice if it returned the actual issue like parameters error not just error sms.