Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Long running Jobs give connectionError when signing in

オープン
#1,180 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
python
領域
api

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
716
フォーク
446
平均マージ
8日 8時間
マージ済み PR(30日)
2

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tableau/server-client-python のほかの issue

tableau/server-client-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。