Skip to content

default domain issue  #13

@befragment

Description

@befragment

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions