typesense-python icon indicating copy to clipboard operation
typesense-python copied to clipboard

Client should be able to handle None on key values.

Open zehawki opened this issue 4 years ago • 3 comments

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

zehawki avatar Aug 27 '21 22:08 zehawki

Closing this one since it hasn't seen traction in a long time. If the issue is still present, feel free to reopen this.

tharropoulos avatar Apr 08 '25 13:04 tharropoulos

But what "traction" do you want to see? An issue has been reported - you guys have not confirmed whether it IS an issue, and if so, whether its been solved.

zehawki avatar Apr 08 '25 13:04 zehawki

No other user has reported this or reacted to this issue, and there has been almost 4 years worth of updates in the library. Sorry for not responding to this earlier 😁

tharropoulos avatar Apr 08 '25 13:04 tharropoulos