Occasionally, I see this in the logs:
Unhandled exception in event processor. Analytics events were not processed. [init() got an unexpected keyword argument 'total']
It doesn't happen all the time, and I think I traced it down to how retries are handled. This library uses a _EventRetry subclass of urllib3.Retry, however, Retry will try to recreate itself via the "new" function, passing in all the arguments it received. Unfortunately, _EventRetry doesn't support any of those arguments, specifically 'total', and I think this is causing the error.
The fix would be to, at a minimum, add **kwargs to the constructor, or better yet, pass those same arguments down.
Occasionally, I see this in the logs:
Unhandled exception in event processor. Analytics events were not processed. [init() got an unexpected keyword argument 'total']
It doesn't happen all the time, and I think I traced it down to how retries are handled. This library uses a _EventRetry subclass of urllib3.Retry, however, Retry will try to recreate itself via the "new" function, passing in all the arguments it received. Unfortunately, _EventRetry doesn't support any of those arguments, specifically 'total', and I think this is causing the error.
The fix would be to, at a minimum, add **kwargs to the constructor, or better yet, pass those same arguments down.