Skip to content

Fix adapter responses and QoD session handling

Essentially, the changes needed to make this MR work: open-exposure-gateway!15 (merged)

Summary

  • Normalize SDK adapter responses to ensure consistent (data, status_code) return format
  • Fix bug in QoD session endpoints using undefined variable
  • Improve error handling with proper JSON error responses

Changes

  • Response normalization: Added _normalize_adapter_response() helper to convert requests.Response objects to (json_data, status_code) tuples across all adapter calls
  • Zone validation fix: Added _ensure_edge_cloud_region() to default missing edgeCloudRegion to "unknown" (prevents downstream validation errors)
  • QoD bug fix: get_qod_session() and delete_qod_session() were passing undefined id instead of session_id parameter
  • Error responses: Exceptions now return {"error": "..."}, 500 instead of raw exception objects

Merge request reports

Loading