adspower icon indicating copy to clipboard operation
adspower copied to clipboard

default domain issue

Open befragment opened this issue 11 months ago • 1 comments

The issue is hardcoded AdsPower _api_url attribute in _BaseHTTPClient.

I have AdsPower and python app on my host. Python app is working from docker container. So when I want to use AdsPower API in any code snippet of my app I have to use url not local.adspower.net but host.docker.internal. e.g. host.docker.internal:50325/status

response = requests.get(
        url="http://host.docker.internal:50325/status",
        headers={"Authorization": "Bearer xxx"}
    )   # this actually returns 200 status code

but

profile = (await Profile.query(id_=id))[0]   # raises adspower.exceptions.UnavailableAPIError

So, dear developers add a possibility for users to manually specify the api url.

befragment avatar Jan 10 '25 14:01 befragment

Ok, I will add url parameter

blnkoff avatar Jan 14 '25 22:01 blnkoff