-
Notifications
You must be signed in to change notification settings - Fork 205
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
The client ( version 0.3.0) ignores the URL configuration parameter. #368
Comments
Hi @jdelacasa I see in the logs the error is for |
yes sorry , the correct:
===============================0 INFO: 127.0.0.1:37382 - "POST /sessions/create HTTP/1.1" 404 Not Found |
@jdelacasa gotcha, you have to also pass the apiserver_url = "http://192.168.1.23:4501"
control_plane_url = "http://192.168.1.23:8000"
client = llama_deploy.Client(api_server_url=apiserver_url, control_plane_url=control_plane_url) |
Thanks, initially I also got a connection error, control-plane: it seems to work fine now |
Client machine: 192.168.1.12
Machine with control plane: 192.168.1.23
===== Script =====
import llama_deploy
apiserver_url = 'http://192.168.1.23:4501'
async def check_status(apiserver_url):
# Pass other config settings to the Client constructor
client = llama_deploy.Client(api_server_url=apiserver_url,
timeout=10
)
status = await client.apiserver.status()
logger.info(status)
yield status
(...)
Output:
(...)
File "/usr/local/lib/python3.11/site-packages/httpx/_models.py", line 761, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '404 Not Found' for url 'http://localhost:8000/sessions/create'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
The text was updated successfully, but these errors were encountered: