Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Retry logic not compatible with urllib3 Retry (requests adapter)

Đang mở
#8 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

Start by reading the SDK client construction and HTTP transport setup; the issue does not name files or tests. Check how the client creates its transport and whether it can accept the supplied requests Session or adapter. Done means a client can use a custom transport with the shown urllib3 Retry strategy, with a test demonstrating retries.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug enhancement
Retry logic not compatible with urllib3 Retry (requests adapter)

Description
Cannot integrate SDK with urllib3 retry strategies.

Code snippet

from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry

retry = Retry(total=3)
adapter = HTTPAdapter(max_retries=retry)

session = requests.Session()
session.mount("https://", adapter)

client = Client("token")

Issue
No way to plug custom transport layer.

Ngôn ngữ chính
Python
Star
18
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openapi/openapi-python-sdk

Tất cả issue của openapi/openapi-python-sdk

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.