We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df1aebe commit 6c319cbCopy full SHA for 6c319cb
1 file changed
comfy_api_nodes/apis/client.py
@@ -327,7 +327,9 @@ def request(
327
ApiServerError: If the API server is unreachable but internet is working
328
Exception: For other request failures
329
"""
330
- url = urljoin(self.base_url, path)
+ # Use urljoin but ensure path is relative to avoid absolute path behavior
331
+ relative_path = path.lstrip('/')
332
+ url = urljoin(self.base_url, relative_path)
333
self.check_auth(self.auth_token, self.comfy_api_key)
334
# Combine default headers with any provided headers
335
request_headers = self.get_headers()
0 commit comments