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

Invalid value for buf_text, must not be None #20

Closed
stoyanovdanail opened this issue Jan 22, 2021 · 1 comment
Closed

Invalid value for buf_text, must not be None #20

stoyanovdanail opened this issue Jan 22, 2021 · 1 comment

Comments

@stoyanovdanail
Copy link

Could you please explain how to avoid this error? It looks like a bug in python client lib.

  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/ext/api/document_reader_api.py", line 49, in process
    return RecognitionResponse(self.api_process(process_request))
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api/process_api.py", line 60, in api_process
    return self.api_process_with_http_info(process_request, **kwargs)  # noqa: E501
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api/process_api.py", line 170, in api_process_with_http_info
    _request_auth=local_var_params.get('_request_auth'))
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 377, in call_api
    _request_auth)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 208, in __call_api
    return_data = self.deserialize(response_data, response_type)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 280, in deserialize
    return self.__deserialize(data, response_type)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 321, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 686, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 321, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 686, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 297, in __deserialize
    for sub_data in data]
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 297, in <listcomp>
    for sub_data in data]
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 321, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 693, in __deserialize_model
    instance = self.__deserialize(data, klass_name)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 321, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 686, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 321, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 686, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 297, in __deserialize
    for sub_data in data]
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 297, in <listcomp>
    for sub_data in data]
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 321, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/api_client.py", line 688, in __deserialize_model
    instance = klass(**kwargs)
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/models/doc_visual_extended_field.py", line 74, in __init__
    self.buf_text = buf_text
  File "/opt/Python-3.7.2/lib/python3.7/site-packages/regula/documentreader/webclient/gen/models/doc_visual_extended_field.py", line 197, in buf_text
    raise ValueError("Invalid value for `buf_text`, must not be `None`")  # noqa: E501
ValueError: Invalid value for `buf_text`, must not be `None`
@hleb-albau
Copy link
Contributor

hleb-albau commented Jan 24, 2021

fixed in 5.4.1 python client
please, check it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants