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

Long running Jobs give connectionError when signing in

Đang mở
#1,180 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
api

Hướng nghiên cứu

Start at the server.auth.sign_in entry point and inspect how its HTTP connection or session behaves after a 10-minute-to-4-hour delay. Reproduce the reported ConnectionError with the stated Python and TSC versions; done means long-running jobs can sign in reliably without caller retry loops, with regression coverage if the project has a relevant test location.

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

Mô tả

bug needs investigation

Describe the bug

I have a package where I standardize the way we're authenticating. So the server and tableau_auth are initialized on import of my package. Then downstream there are jobs that run anywhere from 10 minutes to 4 hours. But if they use

with server.auth.sign_in(tableau_auth):
  print("do_anything")

It fails. Funnily enough, after it runs I can run the same function and it runs fine.

I can get around it by just trying multiple times for the sign in.

def sign_in():
    for i in range(5):
        try:
            cxn = server.auth.sign_in(tableau_auth)
            return cxn
        except requests.exceptions.ConnectionError as e:
            continue
        except:
            raise
    if i == 5: 
        raise ConnectionError("Failed to connect after 5 attempts")

# and doing
with sign_in():
  print("do_anything")

Versions

Details of your environment, including:

  • tableau online
  • Python version 3.9.12
  • TSC library version =0.18.0

Results

ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

Other Info

I tried to sign in multiple times because of this SO post

NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

Ngôn ngữ chính
Python
Star
716
Fork
446
Merge trung bình
8 ngày 8 giờ
Pull request đã merge (30 ngày)
2

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 tableau/server-client-python

Tất cả issue của tableau/server-client-python

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.