You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
AttributeError: 'NoneType' object has no attribute 'messages' error raises when HttpRequest.make() returned as None in client.py:_log method.
def _log(self, batch: Optional[List[RPRequestLog]]) -> Optional[Tuple[str, ...]]:
if batch:
url = uri_join(self.base_url_v2, 'log')
response = HttpRequest(self.session.post, url, files=RPLogBatch(batch).payload,
verify_ssl=self.verify_ssl, http_timeout=self.http_timeout).make()
return response.messages
def make(self) -> Optional[RPResponse]:
"""Make HTTP request to the ReportPortal API.
The method catches any request preparation error to not fail reporting. Since we are reporting tool
and should not fail tests.
:return: wrapped HTTP response or **None** in case of failure
"""
Steps to Reproduce
Steps to reproduce the behavior:
Send very large file for which RPResponse will be returned with an error
Expected behavior
Flow is not raising AttributeError: 'NoneType' error
Actual behavior
AttributeError: 'NoneType' object has no attribute 'messages' raised
Package versions
reportportal-client:5.5.4
The text was updated successfully, but these errors were encountered:
Describe the bug
AttributeError: 'NoneType' object has no attribute 'messages' error raises when HttpRequest.make() returned as None in client.py:_log method.
Steps to Reproduce
Steps to reproduce the behavior:
Send very large file for which RPResponse will be returned with an error
Expected behavior
Flow is not raising AttributeError: 'NoneType' error
Actual behavior
AttributeError: 'NoneType' object has no attribute 'messages' raised
Package versions
reportportal-client:5.5.4
The text was updated successfully, but these errors were encountered: