Error assistant when run with API

When i try run gets me an error

In web works fine. I don’t know why it’s giving me an error in the run