Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpx 在 0.28 删除了 proxies 参数 #405

Open
balh55y opened this issue Dec 3, 2024 · 1 comment
Open

httpx 在 0.28 删除了 proxies 参数 #405

balh55y opened this issue Dec 3, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@balh55y
Copy link

balh55y commented Dec 3, 2024

�[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'
@mnixry mnixry added the bug Something isn't working label Dec 3, 2024
@mnixry mnixry self-assigned this Dec 3, 2024
@mnixry
Copy link
Member

mnixry commented Dec 3, 2024

先锁旧版 httpx 吧,这个问题我这两天就修

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants