I have received this message when trying to list orders and in my case the cause was using the "naked" (without wwww) domain as the base URL + a redirect in the server to the URL with www.
It became obvious when I tried a GET order request and I received a 301.