I have kind of similar issue. I can execute API methods where no "List" or "IEnumerable" instructions are used. If I have a line of code with any of those it immediately fails and shows:

{
"Message": "An error has occurred."
}

 

This does not seems to make any sense!, please help!