Diagnosing Automation Problems
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Designing, Deploying and Managing Network Automation Systems premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Triage by layer, from the wire up
- When the server answers: HTTP status codes
- Errors past the status line: RESTCONF and NETCONF
- When the client never gets an answer
- Reading a Python traceback
- Exam-pattern recognition
HTTP status: root cause and the correct fix
| Status | Meaning | Likely root cause | Correct fix |
|---|---|---|---|
| 400 Bad Request | Malformed request | Invalid JSON or wrong encoding | Fix the body and Content-Type |
| 401 Unauthorized | Not authenticated | Missing, invalid, or expired credential | Send or refresh the token |
| 403 Forbidden | Authenticated, not permitted | Caller lacks the required privilege | Grant the role; resending creds will not help |
| 404 Not Found | Wrong target | Bad URL or RESTCONF/YANG path | Correct the resource path |
| 409 Conflict | Resource state clash | POST to a resource that already exists | PUT to replace or PATCH to merge |
| 415 Unsupported Media Type | Wrong Content-Type | Body not application/yang-data+json | Set the correct Content-Type header |
| 429 Too Many Requests | Rate limited | Too many calls in the window | Honor Retry-After, then back off |
| 5xx (500/502/503) | Server-side fault | Server error, bad gateway, or outage | Retry the same request with backoff |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- https://requests.readthedocs.io/en/latest/user/quickstart/
- https://requests.readthedocs.io/en/latest/user/advanced/
- https://www.rfc-editor.org/rfc/rfc9110
- https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/1717/b_1717_programmability_cg/m_1717_prog_restconf.html
- https://www.rfc-editor.org/rfc/rfc8040
- https://www.rfc-editor.org/rfc/rfc6585
- https://www.rfc-editor.org/rfc/rfc6241
- https://docs.python.org/3/tutorial/errors.html
- https://docs.python.org/3/library/traceback.html