diff --git a/ayon_api/server_api.py b/ayon_api/server_api.py index 24613021e..b4287e625 100644 --- a/ayon_api/server_api.py +++ b/ayon_api/server_api.py @@ -1408,7 +1408,10 @@ def _download_file_to_stream( try: with get_func(url, **kwargs) as response: # Auto-fix missing 'api/' - if response.status_code == 405 and not api_prepended: + if ( + response.status_code in (404, 405) + and not api_prepended + ): api_prepended = True if ( not endpoint.startswith(self._base_url) @@ -1841,7 +1844,7 @@ def _upload_file( **kwargs ) # Auto-fix missing 'api/' - if response.status_code == 405 and not api_prepended: + if response.status_code in (404, 405) and not api_prepended: api_prepended = True if ( not endpoint.startswith(self._base_url)