Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

httpx 在 0.28 删除了 proxies 参数 #405

Description

@balh55y
�[2Khibiapi  | │ ╭─────────────────────────────── locals ───────────────────────────────╮     │
�[2Khibiapi  | │ │ cookies = None                                                       │     │
�[2Khibiapi  | │ │ headers = {                                                          │     │
�[2Khibiapi  | │ │           │   'API-Key': b'C69BAF41DA5ABD1FFEDC6D2FEA56B',           │     │
�[2Khibiapi  | │ │           │   'App-Channel': '2',                                    │     │
�[2Khibiapi  | │ │           │   'App-Version': '2.2.1.2.3.3',                          │     │
�[2Khibiapi  | │ │           │   'App-Build-Version': '44',                             │     │
�[2Khibiapi  | │ │           │   'App-UUID': 'defaultUuid',                             │     │
�[2Khibiapi  | │ │           │   'Accept': 'application/vnd.picacomic.com.v1+json',     │     │
�[2Khibiapi  | │ │           │   'App-Platform': 'android',                             │     │
�[2Khibiapi  | │ │           │   'User-Agent': 'okhttp/3.8.1',                          │     │
�[2Khibiapi  | │ │           │   'Content-Type': 'application/json; charset=UTF-8'      │     │
�[2Khibiapi  | │ │           }                                                          │     │
�[2Khibiapi  | │ │ proxies = {'all://': '[http://127.0.0.1'}](http://127.0.0.1})                              │     │
�[2Khibiapi  | │ │    self = <hibiapi.api.bika.net.NetRequest object at 0x7fc70727b520> │     │
�[2Khibiapi  | │ ╰──────────────────────────────────────────────────────────────────────╯     │
�[2Khibiapi  | │                                                                              │
�[2Khibiapi  | │ /app/hibiapi/utils/net.py:83 in create_client                                │
�[2Khibiapi  | │                                                                              │
�[2Khibiapi  | │    80 │   │   self.create_client()                                           │
�[2Khibiapi  | │    81 │                                                                      │
�[2Khibiapi  | │    82 │   def create_client(self):                                           │
�[2Khibiapi  | │ ❱  83 │   │   self.client = self.client_class(                               │
�[2Khibiapi  | │    84 │   │   │   headers=self.headers,                                      │
�[2Khibiapi  | │    85 │   │   │   proxies=self.proxies,                                      │
�[2Khibiapi  | │    86 │   │   │   cookies=self.cookies,                                      │
�[2Khibiapi  | │                                                                              │
�[2Khibiapi  | │ ╭───────────────────────────── locals ──────────────────────────────╮        │
�[2Khibiapi  | │ │ self = <hibiapi.api.bika.net.NetRequest object at 0x7fc70727b520> │        │
�[2Khibiapi  | │ ╰───────────────────────────────────────────────────────────────────╯        │
�[2Khibiapi  | ╰──────────────────────────────────────────────────────────────────────────────╯
�[2Khibiapi  | TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxies'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions