# HTTP error 401 via URI module

**URL:** <https://forum.ansible.com/t/http-error-401-via-uri-module/31900>\
**Category:** Ansible Developer\
**Created:** [January 4, 2020, 8:48am UTC](https://forum.ansible.com/t/http-error-401-via-uri-module/31900 "2020-01-04T08:48:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijay\_Ravindran](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@Vijay\_Ravindran](https://forum.ansible.com/u/Vijay_Ravindran)\
**Post date:** [January 4, 2020, 8:48am UTC](https://forum.ansible.com/t/http-error-401-via-uri-module/31900/1 "2020-01-04T08:48:27Z")

</div>

Hello Team

I do get http error 401 continously during POST operation of modifying the mgmt ip of unity storage array using URI module’s playbook.

Any one can help to share some inputs.

Thanks!  
Vj

---

<div class="post-metadata">

**Author:** ![Rajat\_Taneja](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@Rajat\_Taneja](https://forum.ansible.com/u/Rajat_Taneja)\
**Post date:** [January 4, 2020, 9:54am UTC](https://forum.ansible.com/t/http-error-401-via-uri-module/31900/2 "2020-01-04T09:54:04Z")

</div>

Hi, 401 means unauthorised, please check whether the credentials are valid or not, if they are valid then check what sort of authorisation is accepted by the end point, is it a basic auth or with a access token. You can use postman to perform the API call and verify everything.

Thanks,  
Rajat

---

<div class="post-metadata">

**Author:** ![Vijay\_Ravindran](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@Vijay\_Ravindran](https://forum.ansible.com/u/Vijay_Ravindran)\
**Post date:** [January 5, 2020, 3:37pm UTC](https://forum.ansible.com/t/http-error-401-via-uri-module/31900/3 "2020-01-05T15:37:11Z")

</div>

Hi All, Actually it was tough troubleshooting with respect to URI module, as the automation need basic auth. But URI module keeps on throwing error, but finally I fixed after multiple tweeks. Now, I should try creating a new module instead of relying of URI module everytime

Thanks !

---

<div class="post-metadata">

**Author:** ![Kosala\_Atapattu](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@Kosala\_Atapattu](https://forum.ansible.com/u/Kosala_Atapattu)\
**Post date:** [January 5, 2020, 9:21pm UTC](https://forum.ansible.com/t/http-error-401-via-uri-module/31900/4 "2020-01-05T21:21:05Z")

</div>

I presume Unity uses a different API format to the VNX, and the [VNX module](https://docs.ansible.com/ansible/latest/modules/emc_vnx_sg_member_module.html) might not be usable. But I noticed this:

[https://github.com/ansible-dellemc-unity](https://github.com/ansible-dellemc-unity)

might worth trying that.

Cheers,  
Ko
