Skip to content

Commit

Permalink
Better fix for ResponseNotReady
Browse files Browse the repository at this point in the history
  • Loading branch information
nubtron committed Nov 18, 2024
1 parent eb46ea7 commit 2264787
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .ddev/ci/scripts/traces.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def replay(*, record_file: str, port: int) -> None:
body = b64decode(record['body'])
conn.request('PUT', path, body=body, headers=record['headers'])
response = conn.getresponse()
response.read() # Needs to be done to prevent ResponseNotReady.
print(response.status, response.reason)


Expand Down

0 comments on commit 2264787

Please sign in to comment.