# Node Red - Oauth response truncated

**URL:** <https://discourse.nodered.org/t/node-red-oauth-response-truncated/22605>\
**Category:** General\
**Created:** [4 March 2020 08:55 UTC](https://discourse.nodered.org/t/node-red-oauth-response-truncated/22605 "2020-03-04T08:55:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mk1234](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mk1234/32/17984_2.png) [@mk1234](https://discourse.nodered.org/u/mk1234)\
**Post date:** [4 March 2020 08:55 UTC](https://discourse.nodered.org/t/node-red-oauth-response-truncated/22605/1 "2020-03-04T08:55:46Z")

</div>

Access token token received as a response of Oauth2 api call is truncated. Its ending with three dots.  
I have observed that including the 3 dots its 1003 characters? Is there any character limit for access token?  
How can i avoid this truncation?  
Any idea guys? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 March 2020 09:09 UTC](https://discourse.nodered.org/t/node-red-oauth-response-truncated/22605/2 "2020-03-04T09:09:23Z")

</div>

How do you know it is truncated? Are you sure it is not just that whatever you are using to view it is truncating it to save space?

---

<div class="post-metadata">

**Author:** ![mk1234](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mk1234/32/17984_2.png) [@mk1234](https://discourse.nodered.org/u/mk1234)\
**Post date:** [5 March 2020 15:17 UTC](https://discourse.nodered.org/t/node-red-oauth-response-truncated/22605/4 "2020-03-05T15:17:05Z")

</div>

thanks for the reply. I'm using node red flow oauth2 for this api call and the response from this api call is printed in the logs using debug node.  
I'm using access token response from oauth2 API to call another https API and i'm getting error bad request.

I found that Postman API return 1470 characters as the access token, but node red is giving only 1000.

I have tried the following:

Used access token from node red oauth2 api call to manually call the api using Postman, received the same error Bad request.  
Used the access token from postman api call in node red https api its taking less than 1000 characters as header.  
Hope you can assist me. Thank you!!

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [5 March 2020 15:42 UTC](https://discourse.nodered.org/t/node-red-oauth-response-truncated/22605/5 "2020-03-05T15:42:53Z")

</div>

The Debug node truncates any property it displays in the sidebar to 1000 characters for performance reasons. That does _not_ mean the property itself has been truncated on the message.

If you configure the Debug node to also log to the console, or pass it to a File node to write to a file, you'll see the full property value.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 August 2021 12:14 UTC](https://discourse.nodered.org/t/node-red-oauth-response-truncated/22605/7 "2021-08-14T12:14:31Z")

</div>

Towards what?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 August 2021 12:30 UTC](https://discourse.nodered.org/t/node-red-oauth-response-truncated/22605/9 "2021-08-14T12:30:41Z")

</div>

That doesn't seem to be related to this thread, which is about truncated output in the debug node. The thread is a year old so I am going to close it.  
This page in the docs may help you [Securing Node-RED : Node-RED](https://nodered.org/docs/user-guide/runtime/securing-node-red)

If you still have a problem then please start a new thread and ask your question there.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 August 2021 12:30 UTC](https://discourse.nodered.org/t/node-red-oauth-response-truncated/22605/10 "2021-08-14T12:30:58Z")

</div>


