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
) in the context of restoring from a pickled object.
When loading the object from a pickle, the unpickler tries to look up the __setstate__ attribute, but since self._body is not set yet either, this results in an infinite recursion.
Safest bet is probably just to define __getstate__ and __setstate__ on this class, e.g.
The
ApiResponse
class has an unsafe__getattr__
(elastic-transport-python/elastic_transport/_response.py
Line 97 in 6d6e64a
When loading the object from a pickle, the unpickler tries to look up the
__setstate__
attribute, but sinceself._body
is not set yet either, this results in an infinite recursion.Safest bet is probably just to define
__getstate__
and__setstate__
on this class, e.g.The text was updated successfully, but these errors were encountered: