Skip to content

貌似和最新的httpx冲突 #14

@tamakyi

Description

@tamakyi

更新到httpx 0.28.x之后会提示""下载出错,请稍后再试",后台提示
'''
TypeError: AsyncClient.init() got an unexpected keyword argument 'proxie
s'
'''
经查是因为目标应是一个字符串或 None类型,而 httpx 的最新版本需要通过transport 参数传递代理设置。因此,当前报错的原因是 httpx.AsyncClient 不再支持直接通过
proxies 参数传递代理。
目前之能降级0.27

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