Error constructing REST Message/Method: my_scope.my_rest/POST

kavyashree1
Tera Contributor

Hi,

While calling outbound rest message from Async business rule i am getting the below error 

"Error constructing REST Message/Method: my_scope.my_rest/POST"

I have crosschecked many times the correct name of rest message and method , I have gone through articles related to this error but still couldn't find the solution. Can anyone please help me on this ASAP.

Note: I am working in scoped application 

"Also the HTTP Method name passed from script matches with the actual Function name.
Function call is as below,
SCOPE = 'my_scope'
REST Message= 'my_rest'
FUNCTION NAME = 'POST'
and my function call is,

var msg = new sn_ws.RESTMessageV2('my_scope.my_rest', 'POST');"

I have used same code that I get when I do a Preview script usage.
Also I'm using mid server and when I check in ecc queue, the request is not sent.
But, When I hit test under Post, I get 201 response and the request is sent to ecc queue as well.

find_real_file.png

2 REPLIES 2

Rupam_39
Giga Guru

Hi Kavyashree,

Can you please post the code in your Async BR. This would be helpful in resolving quickly.

Thanks & Regards,
Rupam

Hi Kavyashree,

Did you manage to fix it? What was the issue?
Kindly share.

Thanks & Regards,
Rupam