Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScheduledPaymentBatch is not in endpoint nor object #137

Open
1 of 2 tasks
jleclanche opened this issue Jun 21, 2020 · 0 comments
Open
1 of 2 tasks

ScheduledPaymentBatch is not in endpoint nor object #137

jleclanche opened this issue Jun 21, 2020 · 0 comments

Comments

@jleclanche
Copy link

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:

>>> 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

SDK version and environment

  • Tested on 1.13.1
  • Sandbox
  • Production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant