-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Data Lake: Iterating over result of get_paths
method on FileSystemClient
raises HTTP error
#35617
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jalauzon-msft @vincenttran-msft. |
Hi @ShivnarenSrinivasan , thanks for the inquiry! After taking a closer look at your RequestId, we were able to come up with a successful repro of the error you are facing! The sample snippet code provided above actually does not face this issue, and so here is a seperate code example that should help explain what is the root cause.
With that being said, taking a look at your RequestId reveals that you are wrongly passing in a directory to the For example, your code that reproduces the failure in this example would look like: Whereas the correct code snippet would look like: Then, if your goal is to drill down to the paths in In short, the root cause of the issue is that you were specifying more than just the file system when getting a file system client. Hopefully this example makes sense and should unblock your workflow, otherwise please do not hesitate to reach out again! Thanks! |
Thanks a lot, @vincenttran-msft -- in an attempt to simplify the code I was working with, I seem to have left out the most critical detail. My apologies. This explanation is very helpful, and after making the changes, I'm good to go. DocsI am not well versed with the terminology yet, but I couldn't find any specification of what a Runtime CheckFurther, I don't know if this is a correct assumption, but if containers cannot be nested--that means that the only valid argument to the |
Describe the bug
Calling the
get_paths
method, and iterating over the result is throwing aHTTPResponseError
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The iterator object returned by
get_paths
should yield valid filesystem files/directories.Screenshots
Error raised upon iteration:
Additional context
I do not believe this is a direct bug in the SDK, as I was able to replicate this issue while calling the underlying REST API directly--however, hoping there is some insight on the overall process.
In any case, if the method does not work as documented, perhaps some changes are necessary.
The text was updated successfully, but these errors were encountered: