cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1596
Views
10
Helpful
4
Replies

Problem getting device details from DNA-Center REST-api

nicklas
Level 1
Level 1

When I try to get device-details from DNA-center

 

https://<dnaCenterUrl>/dna/intent/api/v1/device-detail?searchBy=<mac>&identifier=macAddress

 

I Get a JAVASCRIPT Transoform exception.

(Se below)

 

what to do?

w. regards

Nicklas

 

{
"executionId": "cd6a097d-91f1-4ff0-bf45-dde2af987ccd",
"statusCode": 500,
"errorResponse": {
"bapiErrorResponse": {
"bapiKey": "89b2-fb14-4f5b-b09b",
"bapiName": "Get Device Detail",
"bapiErrorCode": "",
"bapiErrorMessage": ""
},
"componentErrorResponse": [
{
"compId": "uuid5b434a98",
"compName": "Combine Output-Detail(Prod)",
"compErrorCode": "500",
"compErrorMessage": "cd6a097d-91f1-4ff0-bf45-dde2af987ccd | 38b66879-60c5-438a-8bf3-d6b758f42005 | 89b2-fb14-4f5b-b09b : ScriptProcessor Execution Failed with error: TypeError: Cannot set property \"location\" of undefined in <eval> at line number : 135 ",
"componentType": "JAVASCRIPT_TRANSFORM"
}
]
}
}

4 Replies 4

Mike.Cifelli
VIP Alumni
VIP Alumni

What version of DNAC are you running? Are you executing this via the 'try now' within the DNAC UI?

I am gettibgvthe same error in Cisco DNA center sandbox, so i figure it in all versions.

Tomas de Leon
Cisco Employee
Cisco Employee
  • Disable and Re-Enable the Cisco DNA Center Rest API
  • Then, wait a couple of minutes and try again.

 

Screen Shot 2021-11-10 at 11.12.21 AM.png

Thanks for the suggestion.

 

 

Have done that and now I get this error for some of the devices, but not for all, so the error seems to occur based on the state of a device in some way.

 

The version is as follows

Installed Applications
Cisco DNA Center Core
Automation - Base
2.1.388.60445
Cisco DNA Center Global Search
1.6.99.10
Cisco DNA Center UI
1.6.3.155
Cloud Connectivity - Data Hub
1.6.0.380
Cloud Connectivity - Tethering
2.13.1.4
Disaster Recovery
2.1.388.3600024
NCP - Base
2.1.388.60445
NCP - Services
2.1.388.60445
Network Controller Platform
2.1.388.60445
Network Data Platform - Base Analytics
1.6.1686
Network Data Platform - Core
1.6.1705
Network Data Platform - Manager
1.6.1662
Network Experience Platform - Core
2.1.388.60445
RBAC Extensions
2.1.388.190003
System Commons
2.1.388.60445
Automation
Application Hosting
1.7.0.2108120753
Application Policy
2.1.388.170155
Application Registry
2.1.388.170155
Application Visibility Service
2.1.388.170155
Cisco Umbrella
2.1.388.590077
Cloud Device Provisioning Application
2.1.388.60445
Command Runner
2.1.388.60445
Device Onboarding
2.1.388.60445
Image Management
2.1.388.60445
SD Access
2.1.388.60445
Stealthwatch Security Analytics
2.1.388.1090064
Wide Area Bonjour
2.4.364.75035
Assurance
AI Network Analytics
2.7.8.528
Assurance - Base
2.2.3.337
Assurance - Sensor
2.2.3.317
Automation - Intelligent Capture
2.1.388.60445
Automation - Sensor
2.1.388.60445
Machine Reasoning
2.1.388.210008
Path Trace
2.1.388.60445
Rogue And AWIPS
2.3.0.24
Outdated Applications
DNA Spaces Enabler Package
0.0.1
Policy Applications
Access Control Application
2.1.388.60445
AI Endpoint Analytics
1.5.0.226
Group-Based Policy Analytics
2.2.3.55
Programmability And Integrations
Cisco DNA Center Platform
1.6.1.126
DNA Center Core
Cloud Connectivity - Contextual Content
1.3.1.364

 

 

w. regards

Nicklas