Discovery Error - JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Set destination network & convert network data for future calculations' at line 7

sud1106
Tera Contributor

While discoverying Network devices, Getting the following error form network pattern.

JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Set destination network & convert network data for future calculations' at line 7

Please assist
9 REPLIES 9

Oneimus
Tera Contributor

I am having the same issue. Can someone please assist?

GusPosadaFlorez
Tera Contributor

My Orlando instance with latest Patch works like a charm.... BUT my Paris instance throws the following:

 

Failed Exploring CI Pattern, Pattern name: Windows OS - Desktops

 

Parse the IP DNS names in EVAL
2020-09-14 12:41:25: JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Parse the IP DNS names in EVAL' at line 8

5:
6: if (nslookup_response.indexOf("Name: ") >= 0 ) {
7: var regex = /Name: (\s+.*)Address:/;
==> 8: rtrn = regex.exec(nslookup_response)[1]
9: //getting the exact Group match of the regex with the index of 1
10: } else if (nslookup_response.indexOf("Name= ") >= 0 ) {
11: var regex = /Name= (\s+.*)Address:/;
. JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Parse the IP DNS names in EVAL' at line 8

5:
6: if (nslookup_response.indexOf("Name: ") >= 0 ) {
7: var regex = /Name: (\s+.*)Address:/;
==> 8: rtrn = regex.exec(nslookup_response)[1]
9: //getting the exact Group match of the regex with the index of 1
10: } else if (nslookup_response.indexOf("Name= ") >= 0 ) {
11: var regex = /Name= (\s+.*)Address:/;
 

Hi Gus, I am getting the same issue too. Have you found a fix for this yet?

Hi Nicholas! Nothing yet... I have just re-booted my Paris instance, with the hope that Patch 1 would fix the problem... but, no.

My Orlando instance is working perfectly, thou.