Open smzelek opened 2 years ago
We were able to implement a temporary workaround by monkey patching the Python SDK:
from azure.devops.connection import Connection, sps_url
from azure.devops.v5_1.location import ResourceAreaInfo
original_get_resource_areas = Connection._get_resource_areas
def _get_resource_areas(self, force=False):
if self.base_url == sps_url:
return [ResourceAreaInfo(id='')]
return original_get_resource_areas(self, force=force)
Connection._get_resource_areas = _get_resource_areas
at the top-level of our API that uses this SDK, but an official fix would be preferable since this is a major use case.
https://developercommunity.visualstudio.com/t/Resource-Areas-REST-API-unavailable/1661030
The Resource Areas REST API used by the Python SDK is currently unavailable. The API returns the following error:
This means that any connections instantiated with the
sps_url
fail to load the resource ids for clients like git_client, accounts_client, etc.