QuestionQ79

VerifiedController-Based Network Automation

Question Image

Refer to the exhibit. A network engineer writes a Python script to retrieve event messages from Cisco vManage using the Cisco Catalyst SD-WAN vManage API. After the messages are retrieved, they are adapted to communicate with network devices and sent to a Slack chatbot for additional processing by engineers. After running the script, a Python JSONDecodeError is received. Which action resolves the issue?

Explanation

Cisco Catalyst SD-WAN Manager retrieves events with GET /dataservice/event. Using /dataservice/even requests an invalid resource, which can return a non-JSON error payload; attempting to parse that payload with response.json() raises JSONDecodeError.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!