# Passing Bearer Token "Can't Convert Access Token to JSON"

**URL:** <https://discourse.nodered.org/t/passing-bearer-token-cant-convert-access-token-to-json/48314>\
**Category:** General\
**Created:** [12 July 2021 13:03 UTC](https://discourse.nodered.org/t/passing-bearer-token-cant-convert-access-token-to-json/48314 "2021-07-12T13:03:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![burtonboucher](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/burtonboucher/32/7806_2.png) [@burtonboucher](https://discourse.nodered.org/u/burtonboucher)\
**Post date:** [17 July 2021 17:07 UTC](https://discourse.nodered.org/t/passing-bearer-token-cant-convert-access-token-to-json/48314/2 "2021-07-17T17:07:55Z")

</div>

I put the token in header “Authorization”:”Bearer “ + mytoken

I do not include application/json header.

I use default settings in http request node except my return type “a parsed json object” which is expected return type. Can leave default UTF-8 to test

What I found helpful is to use PostMan. Get it working there and then do Code -\> Dart - http and copy the Uri.parse for the url and copy var headers section minus the Cookie.  
I then add this to a function node prior to my http node.  
msg.url=“…”;  
msg.headers={…}

---

_[View the full topic](https://discourse.nodered.org/t/passing-bearer-token-cant-convert-access-token-to-json/48314)._
