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
I followed the documentation to create a BentoService that uses gRPC as its API server. The service can be called directly using gRPC without any issues.
However, when I tried to create a client using bentoml.client.Client.from_url, I encountered an error.
I also tried to copy and paste the example from the documentation completely, but encountered the same error.
I encountered the following error:
Traceback (most recent call last):
File "...\site-packages\IPython\core\interactiveshell.py", line 3460, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input>", line 2, in<module>
c = bentoml.client.Client.from_url("localhost:3000")
File "...\site-packages\bentoml\client.py", line 124, in from_url
resp = conn.getresponse()
File "...\lib\http\client.py", line 1377, in getresponse
response.begin()
File "...\lib\http\client.py", line 320, in begin
version, status, reason = self._read_status()
File "...\lib\http\client.py", line 302, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine:
My speculation is that the http module failed to decode the returned value, and the decoded string still looks like an encoded state.
To reproduce
Steps to reproduce:
Create a BentoService that uses gRPC as its API server.
Start the BentoService with the bentoml serve command.
Try to create a client using bentoml.client.Client.from_url
Thank you for your response. I realized that the documentation was not written specifically for version 1.0.15, and I did not notice that "latest" in the documentation does not necessarily correspond to version 1.0.15.
Describe the bug
I followed the documentation to create a BentoService that uses gRPC as its API server. The service can be called directly using gRPC without any issues.
However, when I tried to create a client using
bentoml.client.Client.from_url
, I encountered an error.I encountered the following error:
To reproduce
Steps to reproduce:
with the following code:
Server:
Client:
Expected behavior
The client should be created successfully and I should be able to use it to call the BentoService using gRPC.
Environment
Operating system: Windows/Linux
Python version: 3.9/3.10
BentoML version: 1.0.15
The text was updated successfully, but these errors were encountered: