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

api_instance.list_snapshot_snapshots Invalid value for shadow_bytes #62

Open
marcoval123 opened this issue May 12, 2023 · 2 comments
Open

Comments

@marcoval123
Copy link

Hello,

I can't make api_instance.list_snapshot_snapshots work. I've got this error:

Invalid value for `shadow_bytes`, must be a value less than or equal to `4294967295`

Full traceback:

  File "adria.py", line 61, in get_last_snapshot
    api_response = api_instance.list_snapshot_snapshots(limit=limit, schedule=schedule)
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api/snapshot_api.py", line 3125, in list_snapshot_snapshots
    (data) = self.list_snapshot_snapshots_with_http_info(**kwargs)  # noqa: E501
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api/snapshot_api.py", line 3230, in list_snapshot_snapshots_with_http_info
    collection_formats=collection_formats)
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api_client.py", line 346, in call_api
    _preload_content, _request_timeout)
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api_client.py", line 185, in __call_api
    return_data = self.deserialize(response_data, response_type)
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api_client.py", line 257, in deserialize
    return self.__deserialize(data, response_type)
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api_client.py", line 296, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api_client.py", line 671, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api_client.py", line 274, in __deserialize
    for sub_data in data]
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api_client.py", line 274, in <listcomp>
    for sub_data in data]
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api_client.py", line 296, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/api_client.py", line 673, in __deserialize_model
    instance = klass(**kwargs)
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/models/snapshot_snapshot_extended_extended.py", line 104, in __init__
    self.shadow_bytes = shadow_bytes
  File "/usr/local/lib/python3.5/dist-packages/isilon_sdk/v9_4_0/models/snapshot_snapshot_extended_extended.py", line 395, in shadow_bytes
    raise ValueError("Invalid value for `shadow_bytes`, must be a value less than or equal to `4294967295`")  # noqa: E501
ValueError: Invalid value for `shadow_bytes`, must be a value less than or equal to `4294967295`

Do you have an idea ?

SDK VERSION -> isilon_sdk.v9_4_0

@marcoval123
Copy link
Author

Please, I need a resolution for this issue. Any updates?

@antonostrovsky
Copy link

antonostrovsky commented Jan 17, 2024

Hi @marcoval123 ! I think this happening because:

  • This python API is auto-generated and includes a check for maximum integer size
  • The actual Isilon REST API must be returning a value larger than this
  • The check might be redundant, as Python int type can support any number as long as memory allows it

The correct solution would be for maintainers of this project to re-generate the types correctly

EDIT: a possible solution is for you to fork this and comment out the check if you believe the returned value is correct

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

2 participants