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

wait_tasks exceptions.ServiceException: (500) socket hang up

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
api, backend

調査の方向性

Start at cloudtower/utils.py in wait_tasks and trace the get_tasks call through api/task_api.py, api_client.py, and rest.py. Determine where transient socket hang-up failures could be retried and how backoff limits should be exposed. Done means the requested retry behavior is defined and verified for repeated get_tasks failures.

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

説明

wait_tasks([with_task_obj.task_id for with_task_obj in resp if with_task_obj.task_id],client)

当我们调用wait_tasks,经常出现:
Traceback (most recent call last):
File "O:/mywork/mywork/mywork/mypy/myvsphere2/cloud/set-user-from-cmdb.py", line 705, in
main()
File "O:/mywork/mywork/mywork/mypy/myvsphere2/cloud/set-user-from-cmdb.py", line 691, in main
set_user_form_smartx(vc_ip)
File "O:/mywork/mywork/mywork/mypy/myvsphere2/cloud/set-user-from-cmdb.py", line 601, in set_user_form_smartx
wait_tasks([with_task_obj.task_id for with_task_obj in resp if with_task_obj.task_id],client)
File "D:\Python3.74\lib\site-packages\cloudtower\utils.py", line 76, in wait_tasks
id_in=ids
File "D:\Python3.74\lib\site-packages\cloudtower\api\task_api.py", line 209, in get_tasks
return self.get_tasks_with_http_info(get_tasks_request_body, **kwargs) # noqa: E501
File "D:\Python3.74\lib\site-packages\cloudtower\api\task_api.py", line 330, in get_tasks_with_http_info
_request_auth=local_var_params.get('_request_auth'))
File "D:\Python3.74\lib\site-packages\cloudtower\api_client.py", line 380, in call_api
_request_auth)
File "D:\Python3.74\lib\site-packages\cloudtower\api_client.py", line 191, in __call_api
raise e
File "D:\Python3.74\lib\site-packages\cloudtower\api_client.py", line 188, in __call_api
_request_timeout=_request_timeout)
File "D:\Python3.74\lib\site-packages\cloudtower\api_client.py", line 424, in request
body=body)
File "D:\Python3.74\lib\site-packages\cloudtower\rest.py", line 267, in POST
body=body)
File "D:\Python3.74\lib\site-packages\cloudtower\rest.py", line 218, in request
raise ServiceException(http_resp=r)
cloudtower.exceptions.ServiceException: (500)
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Date': 'Thu, 25 Sep 2025 09:03:15 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '671', 'Connection': 'keep-alive', 'Vary': 'Origin', 'x-tower-request-id': 'XxdA5NiavZC2NDm6arUnA'})
HTTP response body: {"path":"/get-tasks","status":500,"message":"request to http://cloudtower-cloudtower.cloudtower-system.svc.cluster.local.:8800/ failed, reason: socket hang up","stack":"FetchError: request to http://cloudtower-cloudtower.cloudtower-system.svc.cluster.local.:8800/ failed, reason: socket hang up\n at ClientRequest. (/app/node_modules/node-fetch/lib/index.js:1501:11)\n at ClientRequest.emit (node:events:518:28)\n at Socket.socketOnEnd (node:_http_client:524:9)\n at Socket.emit (node:events:530:35)\n at endReadableNT (node:internal/streams/readable:1696:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"}

请如如何增加backoffretry,可以给出示例吗?

主要言語
Python
スター
5
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

smartxworks/cloudtower-python-sdk のほかの issue

smartxworks/cloudtower-python-sdk の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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