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

Client should be able to handle None on key values. #14

Open
zehawki opened this issue Aug 27, 2021 · 0 comments
Open

Client should be able to handle None on key values. #14

zehawki opened this issue Aug 27, 2021 · 0 comments

Comments

@zehawki
Copy link

zehawki commented Aug 27, 2021

Description

Client should be able to handle None on key values.

  File "/site-packages/typesense/documents.py", line 42, in upsert
    return self.api_call.post(self._endpoint_path(), document, params)
  File "/site-packages/typesense/api_call.py", line 145, in post
    timeout=self.config.connection_timeout_seconds)
  File "/site-packages/typesense/api_call.py", line 115, in make_request
    raise ApiCall.get_exception(r.status_code)(r.status_code, error_message)
typesense.exceptions.RequestMalformed: [Errno 400] Field `xyz` must be a string.

Steps to reproduce

Send a Python None value for some key in the call documents.upsert(document)

Expected Behavior

Gracefully handle None value for a key

Typsense Version:
0.21

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