# Dashboard-auth.js empty request body

**URL:** <https://discourse.nodered.org/t/dashboard-auth-js-empty-request-body/24489>\
**Category:** Dashboard\
**Created:** [9 April 2020 00:09 UTC](https://discourse.nodered.org/t/dashboard-auth-js-empty-request-body/24489 "2020-04-09T00:09:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![r0ller](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/r0ller/32/14327_2.png) [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Post date:** [9 April 2020 00:09 UTC](https://discourse.nodered.org/t/dashboard-auth-js-empty-request-body/24489/1 "2020-04-09T00:09:41Z")

</div>

Hi All,

I've recently changed two things in settings.js as follows:

httpAdminRoot: "/editor",  
ui: {path: "/", middleware: require("./dashboard-auth")},

Previously, the 'ui' path was "/ui" and httpAdminRoot was commented (so defaulted to '/'). After the changes, when I get a request in dashboard-auth.js, the request body is empty. I don't know if it has to do anything with this post:

> [@I need to get the RAW body from a listener node](https://discourse.nodered.org/t/i-need-to-get-the-raw-body-from-a-listener-node/3105/19):
>
> Hi @stefanopog, i had some time digging into it and now it might i've found a solution by picking up @shrickus hint with the httpNodeMiddleware. In the first tests with the httpNodeMiddleware I discovered that the request already has ben parsed at this point. So I started tracking down where it got parsed and found it: It seems to be a default handler from the admin-UI at this point: After discovering this line 36 gave me the right hint: We just get the admin UI away form the default path…

But that one mentions: " We just get the admin UI away form the default path by setting something like `httpAdminRoot: '/admin',` in `settings.js` and voila - the request is unparsed in `httpNodeMiddleware` ."

The problem is actually that when a user sends the data of a form via post, I don't see the data in the request body any more as it's just empty.

Does anyone have any hint?

Best regards,  
r0ller

---

<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:** [9 May 2020 00:09 UTC](https://discourse.nodered.org/t/dashboard-auth-js-empty-request-body/24489/2 "2020-05-09T00:09:42Z")

</div>

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