Pcornel
Automation · RESTCONF

RESTCONF Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=5627

Back to the Topic

Answer

Troubleshoot RESTCONF by checking HTTPS and RESTCONF are enabled, the URI path and module prefix, Accept and Content-Type headers, HTTP status codes and the error body, and user privilege level.

Remember

  • Status code and error body explain most failures.
  • Headers and module prefixes are common mistakes.
  • Privilege level matters.

First checks

  • curl -v --cacert ca.pem -u <u>:<p> <url> — full exchange
  • ietf-restconf:errors body (error-tag, error-path) — details
  • show logging | include RESTCONF — device logs

Commands

curl -sS -D - -o /dev/null -H "Accept: application/yang-data+json" https://<host>/restconf/data/
Read-only/validation observation for DNS/TLS/HTTP/authentication response for a documented RESTCONF GET boundary.
ip http secure-server

Verify in this order

request → TLS → AAA → path → payload → response

Where it usually breaks

Client payload/auth → HTTP transport → endpoint validation/policy → request accepted → queued/job execution → target mutation → effective state → consumer workload.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5627

Confirmation

Confirm action

Continue?