Logging and Debugging
Enable verbose logging, inspect HTTP requests, and diagnose common SDK errors.
Enable verbose request logging
import logging
import http.client as http_client
http_client.HTTPConnection.debuglevel = 1
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("urllib3").setLevel(logging.DEBUG)
logging.getLogger("urllib3").propagate = TrueInspect a single failing call
from roboflow.adapters import rfapi
response = rfapi.get_workflow("YOUR_API_KEY", workspace_url="my-workspace", workflow_url="slow-webhooks")
print(response)Common errors
RoboflowError: 401
RoboflowError: 401RoboflowError: 404
RoboflowError: 404RoboflowError: 423 Locked
RoboflowError: 423 LockedRuntimeError from restore()
RuntimeError from restore()Slow uploads
ImportError on roboflow-slim
ImportError on roboflow-slimWhere to look in the source
Reporting a bug
Last updated
Was this helpful?