Weird thing happening with http request

Hi Everybody,
I have a http request node and It is working great with an inject node which sends the data to it. I am only setting msg.payload msg.direction and msg.lot. I am using them to create the header and the body of the http request. This test set up working every time. The problem is my other nodes doing their jobs and at the end I am setting these params in a function node as below

temp=msg;
msg = {}
msg._msgid=temp._msgid;
msg.payload = temp.payload;
msg.direction = temp.direction;
msg.lot = parseInt(temp.lot).toString();

return msg;

When the system triggers the http request over this function node I am getting below error. (not always so it is very hard to reproduce the error)

The requested URL was rejected. Please consult with your administrator.
Your support ID is: 12854212305036220401

I am printing out to debug panel the inject node output and the function node output before sending them to http request and they are exactly same. (printing out hole msg object)

Is there something passing through the line except the msg object?

I can try your suggestions. As I said before it is very hard to reproduce the error.
any suggestions are welcome

Regards
Nuri

Try adding a catch node connected to a debug node (set to diswplay the complete msg object) and see if that shows anything.

Here is the catch node return to the debug panel

{
   "_msgid":"5ab344c569223b2c",
   "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: 12854212327348100118<br><br><a href='javascript:history.back();'>[Go Back]</a></body></html>",
   "direction":"SELL",
   "lot":"20",
   "symbol":"HEKTS",
   "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"
   },
   "statusCode":200,
   "responseUrl":"https://www.algolab.com.tr/api/api/SendOrder",
   "redirectList":[
      
   ],
   "retry":0,
   "error":{
      "message":"Order Error",
      "source":{
         "id":"96508857633674d6",
         "type":"function",
         "name":"isSuccess",
         "count":1
      }
   }
}

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