Hi @skothari, I tried your exact scenario in Firefox, both through UI and API call and worked fine for me.
Can you open any browser and login to Ranger UI using the url in your error, like, http://<Ranger host>:<Ranger port>. Then in another tab, give the exact url that's given in your error.
http://<Ranger internal hostname>:6080/service/plugins/policies/downloadExcel?policyNamePartial=VLS_CC_267_ACCESS_1&policyType=0&serviceType=hive
What do you get?
Also can you try the scenario once more through Ranger UI and observe what happens in Ranger log that is located at /var/log/ranger/admin/xa_portal.log?
to download a csv
curl --header "application/xml" -H "Content-Type: text/x-csv" -o Ranger_Policies.csv -u user:pass "http://rangerAdminServer:6080/service/plugins/policies/csv?&serviceType="