You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid --url / NSC_URL crashes with an internal error #186
resolve_profile builds HttpUrl(url) without catching the pydantic ValidationError, so a malformed URL escapes as an internal error with a traceback instead of a usage/config error.
Repro
NSC_TOKEN=x nsc --url not-a-url dcim sites list
→ {"error":"internal error: 1 validation error for function-wrap[wrap_val()] Input should be a valid URL…", a traceback, exit 1.
Expected: exit 2, invalid NetBox URL 'not-a-url' (from --url), the same shape as the #179 fix. NSC_SCHEMA/--schema URLs probably need the same treatment.
Activity
thomaschristory commentedon Oct 23, 2026
Claiming: branch
fix/invalid-url-usage-error.thomaschristory commentedon Oct 23, 2026
PR opened: #188. It also fixes static commands exiting silently on bootstrap errors.
fix(cli): invalid --url/NSC_URL is a usage error; static commands rep…
thomaschristory commentedon Oct 23, 2026
Done: merged in #188 and released in v1.8.4. Follow-up: #189.