I have tableau server installed on my local PC and when I tried to query the views using REST API I was able to get all the views for the given site. In this particular query the contentUrl is empty ("").
But when I call the same REST API to query views against my test/development server , I am getting the below error. The only difference in this one is, I provided the contentURL to get the token, SiteID, which I use it in the Query to get all the views.
BTW - We are currently using Tableau v9.3 and I am using the site admin credentials in both the case. I am passing the token in request header. I am not sure what is that I am doing wrong. Any help is appreciated.
First I would double-check the ID of the site as different servers have different names for sites. If that doesn't work, I would try upgrading to REST API 2.2 from 2.0 and see if the issue still occurs.