diff --git a/CHANGELOG.md b/CHANGELOG.md index f57800e29..f770dc668 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## neptune-client 0.10.7 [UNRELEASED] + +### Fixes +- Fixed url building in Windows ([#672](https://github.com/neptune-ai/neptune-client/pull/672)) + ## neptune-client 0.10.6 ### Fixes diff --git a/neptune/new/internal/backends/utils.py b/neptune/new/internal/backends/utils.py index 7ea3876b6..d978fe74d 100644 --- a/neptune/new/internal/backends/utils.py +++ b/neptune/new/internal/backends/utils.py @@ -19,10 +19,9 @@ import socket import sys import time -import pathlib from typing import Optional, Dict -from urllib.parse import urlparse, urlunparse +from urllib.parse import urlparse, urljoin import click import requests @@ -155,14 +154,4 @@ def build_operation_url(base_api: str, operation_url: str) -> str: if '://' not in base_api: base_api = f'https://{base_api}' - base_api_url = urlparse(base_api) - path = pathlib.Path(base_api_url.path) / operation_url - - return urlunparse(( - base_api_url.scheme, - base_api_url.netloc, - str(path), - base_api_url.params, - base_api_url.query, - base_api_url.fragment, - )) + return urljoin(base=base_api, url=operation_url)