I queried some data, going far back enough to hit the issue with my account: endpoint.Event.list({"count": 50})
What should happen:
If I don't go too far back, I get this:
>>> endpoint.Event.list({"count": 40})
<bunq.sdk.model.generated.endpoint.BunqResponseEventList object at 0x7ff4d22cb280>
What happens:
>>> endpoint.Event.list({"count": 50})
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/model/generated/endpoint.py", line 10672, in list
cls._from_json_list(response_raw, cls._OBJECT_TYPE_GET)
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/model/core/bunq_model.py", line 104, in _from_json_list
item_deserialized = converter.deserialize(cls, item_unwrapped)
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/json/converter.py", line 444, in deserialize
return JsonAdapter.deserialize(cls, obj_raw)
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/json/converter.py", line 102, in deserialize
return cls._deserialize_default(cls_target, obj_raw)
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/json/converter.py", line 117, in _deserialize_default
return cls._deserialize_dict(cls_target, obj_raw)
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/json/converter.py", line 147, in _deserialize_dict
dict_deserialized = cls._deserialize_dict_attributes(cls_target, dict_)
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/json/converter.py", line 163, in _deserialize_dict_attributes
dict_deserialized[value_specs.name] = cls._deserialize_value(value_specs.types, dict_[key])
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/json/converter.py", line 270, in _deserialize_value
return cls.deserialize(types.main, value)
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/json/converter.py", line 104, in deserialize
return deserializer.deserialize(cls_target, obj_raw)
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/json/anchor_object_adapter.py", line 33, in deserialize
object_class = cls._get_object_class(field)
File "(virtualenv)/lib/python3.8/site-packages/bunq/sdk/json/anchor_object_adapter.py", line 64, in _get_object_class
raise BunqException(cls.__ERROR_MODEL_NOT_FOUND.format(class_name))
bunq.sdk.exception.bunq_exception.BunqException: ScheduledPaymentBatch is not in endpoint nor object
Steps to reproduce:
I queried some data, going far back enough to hit the issue with my account:
endpoint.Event.list({"count": 50})
What should happen:
If I don't go too far back, I get this:
What happens:
SDK version and environment