Skip to content
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

Python ADLSAdapter hostname end backslash #345

Closed
dim123dim123 opened this issue Dec 26, 2022 · 2 comments
Closed

Python ADLSAdapter hostname end backslash #345

dim123dim123 opened this issue Dec 26, 2022 · 2 comments

Comments

@dim123dim123
Copy link

Hi when we just copy endpoint from AZDL endpoints page , it come with last symbols backslash "/"
in class ADLSAdapter we got error message "Could not read .. file " because
function create_adapter_path
line 162 :
return 'https://' + self._remove_protocol_from_hostname(self.hostname) + self._get_escaped_root() + self._escape_path(formatted_corpus_path)

It can be fixed :

function _remove_protocol_from_hostname - if last symbrol is "/" remove it

@mafrisci
Copy link
Collaborator

Hi @dim123dim123, thank you for the heads up. We will make that fix and let you know here when that happens. In the meantime, make sure to remove the trailing backslash character before making that call.

@Venkata1920
Copy link
Collaborator

Hi @dim123dim123, we have created a backlog task to address this issue. Please use the suggested alternative till the backlog task is prioritized and fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants