incomplete content #7225
-
Hello,
The problem is that the loop that write the content to file ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is a context manager, handling the client session. When you exit that block, the session is closed. By the second line of your main() function, both the request and the session have been closed. Therefore, it is not expected to be able to read from the response in the rest of the code. Please see the quickstart and other examples for the correct way to make a request. |
Beta Was this translation helpful? Give feedback.
This is a context manager, handling the client session. When you exit that block, the session is closed.
By the second line of your main() function, both the request and the session have been closed. Therefore, it is not expected to be able to read from the response in the rest of the code.
Please see the quickstart and other examples for the correct way to make a request.