# Http request debug payload is truncated

**URL:** <https://discourse.nodered.org/t/http-request-debug-payload-is-truncated/54008>\
**Category:** General\
**Tags:** http-request\
**Created:** [19 November 2021 16:49 UTC](https://discourse.nodered.org/t/http-request-debug-payload-is-truncated/54008 "2021-11-19T16:49:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hobbes1069](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hobbes1069/32/39892_2.png) [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Post date:** [19 November 2021 16:49 UTC](https://discourse.nodered.org/t/http-request-debug-payload-is-truncated/54008/1 "2021-11-19T16:49:42Z")

</div>

I'm trying to compare the payload size between a xml and json payload. I have a HTTP request node polling an MTConnect adapter once per second.

When I connect a debug node to the http request node, I do not get the full payload but a truncated version, but after passing the output through a XML node to convert it to JSON the debug node has the full payload.

Is this hitting some sort of max string length issue?

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 November 2021 16:56 UTC](https://discourse.nodered.org/t/http-request-debug-payload-is-truncated/54008/2 "2021-11-19T16:56:04Z")

</div>

> [@hobbes1069](#):
>
> When I connect a debug node to the http request node, I do not get the full payload but a truncated version

Debug is limited (deliberately - for performance reasons)

Enable `console` output and check the console for full message.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/0/8068b784de7a43327fc0edb1812c797e48d21adc.png)

Alternatively, use something like node-red-contrib-flogger (or a file out node) to write debug messages to file.

---

<div class="post-metadata">

**Author:** ![hobbes1069](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hobbes1069/32/39892_2.png) [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Post date:** [19 November 2021 16:59 UTC](https://discourse.nodered.org/t/http-request-debug-payload-is-truncated/54008/3 "2021-11-19T16:59:25Z")

</div>

Ahh, that's helpful, but the lack of consistency is still interesting since I'm getting the full JSON object.

Thanks!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 November 2021 17:03 UTC](https://discourse.nodered.org/t/http-request-debug-payload-is-truncated/54008/4 "2021-11-19T17:03:55Z")

</div>

> [@hobbes1069](#):
>
> MTConnect

Out of interest, what are you using to communicate with MTConnect? Is this talking to Fanuc equipment? Other?

---

<div class="post-metadata">

**Author:** ![hobbes1069](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hobbes1069/32/39892_2.png) [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Post date:** [19 November 2021 20:17 UTC](https://discourse.nodered.org/t/http-request-debug-payload-is-truncated/54008/5 "2021-11-19T20:17:46Z")

</div>

I know they are Okuma lathes. Typically if the equipment is Fanuc based we just go ahead and use FOCAS via Kepserver.

Currently the lathes are being polled by Kepserver via MTConnect but we're occasionally getting errors so I decided to see what it would take to poll it via Node Red and see if I still had any errors, which I have not. I've been polling one lathe for a couple of days and it hasn't missed a beat, so the problem may have something to do with Kepserver.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 January 2022 20:18 UTC](https://discourse.nodered.org/t/http-request-debug-payload-is-truncated/54008/6 "2022-01-18T20:18:24Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
