aliyun / aliyun/aliyun-openapi-python-sdk

Calling RunCommandRequest every 60 seconds got 104 error (Connection aborted)

Open
#542 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
578
PR merge metrics
No merged PRs in 30d

Description

Python version: 3.10.12
SDK-Version:2.16.0

I need to monitor the task process which run on ECS. So I called RunCommandRequest every 60 seconds to get the process info. But got 104 error:
HttpError occurred. Host:ecs-cn-hangzhou.aliyuncs.com SDK-Version:2.16.0 ClientException:SDK.HttpError ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

Is there any limit to the frequency of RunCommandRequest calling?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is identified. Start by reproducing the RunCommandRequest call with Python 3.10.12 and SDK 2.16.0 at the stated interval, then inspect the SDK's HTTP error handling and relevant ECS API behavior. Done means establishing whether the reset is caused by a request-frequency limit or an SDK transport problem and recording the confirmed resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.