Traceback (most recent call last):
File "cmdline.py", line 140, in <module>
d = room.send_audio_msg(file_path)
File "/home/seb/Documents/yukai/bemo/platform-api/repository/emo-platform-api-python/emo_platform/api.py", line 289, in send_audio_msg
return self.base_client._post(
File "/home/seb/Documents/yukai/bemo/platform-api/repository/emo-platform-api-python/emo_platform/api.py", line 151, in _post
return self._check_http_error(request, update_tokens=update_tokens)
File "/home/seb/Documents/yukai/bemo/platform-api/repository/emo-platform-api-python/emo_platform/api.py", line 116, in _check_http_error
response = request()
File "/home/seb/.local/share/virtualenvs/test-env-NjLHGyVC/lib/python3.8/site-packages/requests/api.py", line 117, in post
return request('post', url, data=data, json=json, **kwargs)
File "/home/seb/.local/share/virtualenvs/test-env-NjLHGyVC/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home/seb/.local/share/virtualenvs/test-env-NjLHGyVC/lib/python3.8/site-packages/requests/sessions.py", line 528, in request
prep = self.prepare_request(req)
File "/home/seb/.local/share/virtualenvs/test-env-NjLHGyVC/lib/python3.8/site-packages/requests/sessions.py", line 456, in prepare_request
p.prepare(
File "/home/seb/.local/share/virtualenvs/test-env-NjLHGyVC/lib/python3.8/site-packages/requests/models.py", line 319, in prepare
self.prepare_body(data, files, json)
File "/home/seb/.local/share/virtualenvs/test-env-NjLHGyVC/lib/python3.8/site-packages/requests/models.py", line 512, in prepare_body
(body, content_type) = self._encode_files(files, data)
File "/home/seb/.local/share/virtualenvs/test-env-NjLHGyVC/lib/python3.8/site-packages/requests/models.py", line 122, in _encode_files
raise ValueError("Data must not be a string.")
ValueError: Data must not be a string.
Client._post の data をstrからdictに変更すると直しますが、これは別の影響があるか分からないので確認お願いします。
Traceback
Client._post
のdata
をstrからdictに変更すると直しますが、これは別の影響があるか分からないので確認お願いします。