The requested URL was rejected. Please consult with your administrator

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. :slight_smile:

Any idea can be helpful

Regards,
Nuri

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

It is a post request. Can be tested with postman

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.

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.

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

"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)

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.

{
   "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

{
   "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
}

ok, so now I understand what is happening.

please answer the rest of it...

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

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":""}'

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.

Both endpoints returns that problem but not always

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.

Thanks for the support anyway.

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