sonic-net / sonic-net/sonic-restapi
"Connection reset error" when running apitest.py
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 26
- Forks
- 49
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 1
Description
Hi SONiC-RESTAPI folks,
I was able to build both images. However, when I attempt to run "python apitest.py" on the container with the local image "rest-api-image-test_local:latest", the following error results:
...
ERROR: test_config_status_reset_get (main.ra_client_positive_tests)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.8/socket.py", line 669, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
...
Can you kindly provide feedback?
-Syd
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with python apitest.py in the rest-api-image-test_local:latest container and inspect the test_config_status_reset_get traceback. Check the API server and container logs around the connection attempt; done means identifying the reset cause and confirming the apitest suite runs successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100