suii2210 opened a new pull request, #60704:
URL: https://github.com/apache/airflow/pull/60704

   This PR fixes an issue in `PowerBIHook` where relative Power BI REST API 
paths (for example, myorg/groups) were passed directly to the async request 
adapter.
   In Apache Airflow 3.x, this resulted in the following error during execution:
   
   Request URL is missing an http:// or https:// protocol
   
   **Root Cause**
   
   `PowerBIHook.run()` forwarded relative endpoints directly to 
`KiotaRequestAdapterHook.run()`.
   The async request adapter requires a fully qualified URL, causing failures 
when standard Power BI endpoints were used.
   
   **Solution**
   
   Normalize Power BI REST API endpoints inside `PowerBIHook.run()`
   Prepend the official Power BI REST API base URL for relative paths:
   https://api.powerbi.com/v1.0/
   Preserve absolute URLs without modification
   Keep all existing Power BI operators unchanged
   
   **Testing**
   Added unit tests to verify relative Power BI URLs are expanded correctly
   Added unit tests to ensure absolute URLs remain unchanged
   Existing Power BI hook tests continue to pass
   
   Backward Compatibility
   
   No breaking changes introduced
   
   Compatible with both sync and async execution paths
   
   Related Issue
   
   Fixes #60573


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to