You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File ".venv\Lib\site-packages\requests_go\adapters.py", line 473, in send
resp = conn.send(tls_request)
^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\pool.py", line 45, in send
response = tls_handler.send(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\request.py", line 25, in send
response = self._session.request(**options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\tls_client\request.py", line 78, in request
raise TLSClientExeption("Body data is not a string or bytes class.")
requests_go.tls_client.exceptions.TLSClientExeption: Body data is not a string or bytes class.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "\SpeechRecognitionAWS\deepl.py", line 45, in
asyncio.run(deepl())
File "C:\null\python\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\null\python\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\null\python\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "\SpeechRecognitionAWS\deepl.py", line 40, in deepl
resp = requests.post(url=url, data=data, headers=headers, params=params, verify=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\api.py", line 116, in post
return request("post", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\sessions.py", line 230, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\adapters.py", line 476, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: Body data is not a string or bytes class.
Traceback (most recent call last):
File "\SpeechRecognitionAWS\deepl.py", line 45, in
asyncio.run(deepl())
File "C:\null\python\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\null\python\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\null\python\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "\SpeechRecognitionAWS\deepl.py", line 40, in deepl
resp = requests.post(url=url, data=data, headers=headers, params=params, verify=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\api.py", line 116, in post
return request("post", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\sessions.py", line 230, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\adapters.py", line 473, in send
resp = conn.send(tls_request)
^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\pool.py", line 45, in send
response = tls_handler.send(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\request.py", line 25, in send
response = self._session.request(**options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\requests_go\tls_client\request.py", line 76, in request
request_params["Body"] = body.decode()
^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
The text was updated successfully, but these errors were encountered:
The upload failed when the data was uploaded, but this operation was available in requests
the error
How should I use bytes on the request body?
The text was updated successfully, but these errors were encountered: