Issue in REST Integration - "Function log is not allowed in scope"

SunilKumar_P
Giga Sage

Hello,

I am trying to integrate SN1 to SN2 using REST and when I create an Incident I am getting the response as below.

"Function log is not allowed in scope. Use gs.debug() or gs.info() instead"

Can someone help me on this issue please?

 

Thanks,

Sunil

5 REPLIES 5

Harshinya1
Mega Guru

Check in the scripts you have utilized for this integration, if you have added any logs replace gs.log with gs.debug or gs.info().

 

Hope this helps

 

Hello,

 

Thanks for your response. I have checked my script and I do not see an gs.log statement.

Prateek kumar
Mega Sage

looks like you have gs.log in your script somewhere.

please replace gs.log with gs.debug() or gs.info()


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Hello,

 

Thanks for your response. I have checked my script and I do not see an gs.log statement.