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
When an exception is caught in _send_request() function, the returned value is None. As some responses from Sentinel contain no content, we can't distinct if the None value is expected or if an error occurred, which lead to TypeError: data is not subscriptable kind of errors in functions using _send_request() internally.
Environment
OS (where OpenCTI server runs): Windows 11
OpenCTI version: OpenCTI 6.5
OpenCTI client: client-python 6.5
Other environment details:
Expected Output
Raised exception in _send_request should stop the execution of process_message() gracefully
Actual Output
process_message() execution is stopped by the TypeError resulting from returning None when an error is caught.
The text was updated successfully, but these errors were encountered:
Description
When an exception is caught in
_send_request()
function, the returned value isNone
. As some responses from Sentinel contain no content, we can't distinct if theNone
value is expected or if an error occurred, which lead toTypeError: data is not subscriptable
kind of errors in functions using_send_request()
internally.Environment
Expected Output
Raised exception in
_send_request
should stop the execution ofprocess_message()
gracefullyActual Output
process_message()
execution is stopped by theTypeError
resulting from returning None when an error is caught.The text was updated successfully, but these errors were encountered: