# HTTP Request for Token generation works intermediately

**URL:** <https://forum.uipath.com/t/http-request-for-token-generation-works-intermediately/393150>\
**Category:** Help\
**Tags:** web, question, activities, webapi\
**Created:** [January 21, 2022, 7:20pm UTC](https://forum.uipath.com/t/http-request-for-token-generation-works-intermediately/393150 "2022-01-21T19:20:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fun\_Filled\_Chapters](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/fun_filled_chapters/32/282056_2.png) [@Fun\_Filled\_Chapters](https://forum.uipath.com/u/Fun_Filled_Chapters)\
**Post date:** [January 21, 2022, 7:20pm UTC](https://forum.uipath.com/t/http-request-for-token-generation-works-intermediately/393150/1 "2022-01-21T19:20:48Z")

</div>

Hi,

I am trying to automate a business problem for which i need to authenticate to the app using a bearer token. For bearer token generation, i am using an HTTP request of UiPath.web. The major issue here is, the request does work from postman, however it doesnt from the activity. I have created right endpoints, headers, body and variables, however i get 500 error.

---

<div class="post-metadata">

**Author:** ![Nithinkrishna](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nithinkrishna/32/561519_2.png) [@Nithinkrishna](https://forum.uipath.com/u/Nithinkrishna)\
**Post date:** [January 23, 2022, 5:45pm UTC](https://forum.uipath.com/t/http-request-for-token-generation-works-intermediately/393150/2 "2022-01-23T17:45:05Z")

</div>

Hey @Fun_Filled_Chapters

Kindly provide error screenshot and the postman request details and also the uipath activity props.

Thanks  
#nK
