Stray StopIteration
from DatapointsSubscriptionAPI.iterate_data
#2013
Labels
StopIteration
from DatapointsSubscriptionAPI.iterate_data
#2013
System information (please complete the following information):
Error occurred around 2024-11-07 19:07:02 UTC
Describe the bug
In the SDK, specifically within the
DatapointsSubscriptionAPI.iterate_data
method, there appears to be an unhandledStopIteration
exception. This exception is likely triggered by an unprotectednext(iterator)
call, where the iterator is exhausted without providing a default value or proper handling of theStopIteration
exception. As a result, Python raises aRuntimeError
when the exception propagates to the generator function. Unfortunately, I do not have the complete stack trace at this time, but I have implemented logging to capture it if the issue reoccurs.To Reproduce
Run this for long enough
Expected behavior
StopIteration
to be caught and properly handled by the SDK instead of propagating to the user.Additional context
Dataset ID and Subscription External ID can be provided upon request
The text was updated successfully, but these errors were encountered: