dabla commented on PR #60704:
URL: https://github.com/apache/airflow/pull/60704#issuecomment-3764103464

   As I already suspected, the PowerBIHook already hard-codes the host, so 
normally the relative url should be resolved correctly:
   
   ```
   class PowerBIHook(KiotaRequestAdapterHook):
       """
       A async hook to interact with Power BI.
   
       :param conn_id: The connection Id to connect to PowerBI.
       :param timeout: The HTTP timeout being used by the `KiotaRequestAdapter` 
(default is None).
           When no timeout is specified or set to None then there is no HTTP 
timeout on each request.
       :param proxies: A dict defining the HTTP proxies to be used (default is 
None).
       :param api_version: The API version of the Microsoft Graph API to be 
used (default is v1).
           You can pass an enum named APIVersion which has 2 possible members 
v1 and beta,
           or you can pass a string as `v1.0` or `beta`.
       """
   
       conn_type: str = "powerbi"
       conn_name_attr: str = "conn_id"
       default_conn_name: str = "powerbi_default"
       hook_name: str = "Power BI"
   
       def __init__(
           self,
           conn_id: str = default_conn_name,
           proxies: dict | None = None,
           timeout: float = 60 * 60 * 24 * 7,
           api_version: APIVersion | str | None = None,
       ):
           super().__init__(
               conn_id=conn_id,
               proxies=proxies,
               timeout=timeout,
               host="https://api.powerbi.com";,
               scopes=["https://analysis.windows.net/powerbi/api/.default";],
               api_version=api_version,
           )
   ```


-- 
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