# The requested URL was rejected. Please consult with your administrator

**URL:** <https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816>\
**Category:** General\
**Tags:** http-request\
**Created:** [10 October 2022 14:35 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816 "2022-10-10T14:35:41Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![makerstorage](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/makerstorage/32/57594_2.png) [@makerstorage](https://discourse.nodered.org/u/makerstorage)\
**Post date:** [10 October 2022 14:35 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/1 "2022-10-10T14:35:41Z")

</div>

Hi,

_The requested URL was rejected. Please consult with your administrator._  
_Your support ID is: xxxxxxxxxxxxxxxxxxxxx_

I am getting this response from http request node. My server is running on aws. Node-red version 2.2.2  
I read a lot about the subject that people faced with their browser. The suggestions are clear cache. Reset your router. etc. 🙂

Any idea can be helpful

Regards,  
Nuri

---

<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:** [10 October 2022 14:47 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/2 "2022-10-10T14:47:41Z")

</div>

If you put the url into a browser does it fetch it ok?

---

<div class="post-metadata">

**Author:** ![makerstorage](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/makerstorage/32/57594_2.png) [@makerstorage](https://discourse.nodered.org/u/makerstorage)\
**Post date:** [10 October 2022 15:05 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/3 "2022-10-10T15:05:33Z")

</div>

It is a post request. Can be tested with postman

---

<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:** [10 October 2022 15:24 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/4 "2022-10-10T15:24:58Z")

</div>

Export the request from postman as a `cURL` command I will (try) to translate it for you.

Be sure to sanitize any passwords or sensitive info with `x` characters before posting.

---

<div class="post-metadata">

**Author:** ![makerstorage](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/makerstorage/32/57594_2.png) [@makerstorage](https://discourse.nodered.org/u/makerstorage)\
**Post date:** [11 October 2022 08:01 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/5 "2022-10-11T08:01:55Z")

</div>

I tried to replicate the error with postman but can not succeeded. I have a catch node on the flow and it sends me an email about the error. I think it gets this error sometimes.

---

<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:** [11 October 2022 08:07 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/6 "2022-10-11T08:07:19Z")

</div>

> [@makerstorage](#):
>
> I tried to replicate the error with postman but can not succeeded

I am not interested in you recreating an error within postman.

> [@makerstorage](#):
>
> I have a catch node on the flow and it sends me an email about the error. I think it gets this error sometimes.

"sometimes" - that suggests you have a working flow that "sometimes" fails?

Lets clear this up.

Can you successfully perform the POST from node-red (even occasionally)?

Can you successfully perform the POST request on postman? If yes, then export the cURL command and post it in a reply here - I will attempt to translate it into a regular (working) flow (using http-request node)

---

<div class="post-metadata">

**Author:** ![makerstorage](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/makerstorage/32/57594_2.png) [@makerstorage](https://discourse.nodered.org/u/makerstorage)\
**Post date:** [11 October 2022 10:30 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/7 "2022-10-11T10:30:02Z")

</div>

Thanks for the support.

> Can you successfully perform the POST from node-red (even occasionally)?  
> Yes sometimes it works normally but sometimes it returns the below response

I set a debug node before the http request node and here is the msg that I am sending to http request node.

```auto
{
   "payload":"{\"symbol\":\"AKFGY\",\"direction\":\"SELL\",\"pricetype\":\"piyasa\",\"price\":\"\",\"lot\":\"2.000000\",\"sms\":true,\"email\":true,\"subAccount\":\"\"}",
   "lot":"2.000000",
   "direction":"SELL",
   "symbol":"AKFGY",
   "headers":{
      "Content-Type":"application/json; charset=utf-8",
      "APIKEY":"xxxxxxx",
      "Authorization":"xxxxxxx",
      "Checker":"a1242ab1a378ba5660d7226113569b5393a0ed8ab81631b48326ed785912cfe8"
   },
   "_msgid":"de305853c5c0307b"
}

```

the return from the http request node

```auto
{
   "payload":"<html><head><title>Request Rejected</title></head><body>The requested URL was rejected. Please consult with your administrator.<br><br>Your support ID is: 12854212302814269685<br><br><a href='javascript:history.back();'>[Go Back]</a></body></html>",
   "lot":"2.000000",
   "direction":"SELL",
   "symbol":"AKFGY",
   "headers":{
      "cache-control":"no-cache",
      "connection":"close",
      "content-type":"text/html; charset=utf-8",
      "pragma":"no-cache",
      "content-length":"247",
      "x-node-red-request-node":"3aec619c"
   },
   "_msgid":"3bb8cebb59031219",
   "statusCode":200,
   "responseUrl":"https://www.algolab.com.tr/api/api/SendOrder",
   "redirectList":[
      
   ],
   "retry":0
}

```

---

<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:** [11 October 2022 11:15 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/8 "2022-10-11T11:15:23Z")

</div>

ok, so now I understand what is happening.

please answer the rest of it...

> [@Steve-Mcl](#):
>
> Can you successfully perform the POST request on postman? If yes, then export the cURL command and post it in a reply here - I will attempt to translate it into a regular (working) flow (using http-request node)

---

<div class="post-metadata">

**Author:** ![makerstorage](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/makerstorage/32/57594_2.png) [@makerstorage](https://discourse.nodered.org/u/makerstorage)\
**Post date:** [11 October 2022 12:06 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/9 "2022-10-11T12:06:25Z")

</div>

> Can you successfully perform the POST request on postman? If yes, then export the cURL command and post it in a reply here - I will attempt to translate it into a regular (working) flow (using http-request node)

yes I perform the post request without any problem with postman. Please find below the curl export

```auto
curl -X POST \
  https://www.algolab.com.tr/api/api/InstantPosition \
  -H 'apikey: xxxxx
  -H 'authorization: xxxx
  -H 'cache-control: no-cache' \
  -H 'checker: 1c2c319d30bdcc850205f00feee8277cdc2c4a272ddd0b50d9489ab37b699b00' \
  -H 'content-type: application/json; charset=utf-8' \
  -H 'postman-token: b9610ddd-a043-1edd-f9b3-ef18a002301e' \
  -d '{"Subaccount":""}'

```

---

<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:** [11 October 2022 12:15 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/10 "2022-10-11T12:15:11Z")

</div>

Are you certain that this curl is the same request as the one that you posted for node-red?

What URL are you posting to in node-red?

This curl has one data item `{"Subaccount":""}` where has your payload in node-red contains things like pricetype, symbol, lot etc.

---

<div class="post-metadata">

**Author:** ![makerstorage](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/makerstorage/32/57594_2.png) [@makerstorage](https://discourse.nodered.org/u/makerstorage)\
**Post date:** [11 October 2022 13:10 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/11 "2022-10-11T13:10:43Z")

</div>

Both endpoints returns that problem but not always

---

<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:** [11 October 2022 14:08 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/12 "2022-10-11T14:08:28Z")

</div>

Sorry, you are not being clear and you fail to answer all questions and when you do, I get partial information.

I cannot help without accurate and full information.

---

<div class="post-metadata">

**Author:** ![makerstorage](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/makerstorage/32/57594_2.png) [@makerstorage](https://discourse.nodered.org/u/makerstorage)\
**Post date:** [11 October 2022 14:28 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/13 "2022-10-11T14:28:50Z")

</div>

Thanks for the support anyway.

---

<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:** [10 December 2022 14:29 UTC](https://discourse.nodered.org/t/the-requested-url-was-rejected-please-consult-with-your-administrator/68816/14 "2022-12-10T14:29:15Z")

</div>

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