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

System.ArgumentOutOfRangeException: '' #19

Closed
megapro17 opened this issue May 29, 2022 · 5 comments · Fixed by #34
Closed

System.ArgumentOutOfRangeException: '' #19

megapro17 opened this issue May 29, 2022 · 5 comments · Fixed by #34
Labels
help wanted Extra attention is needed

Comments

@megapro17
Copy link

What can we do for you?

When I'm using GetDirectoryListing for the second time, it shows me an empty exception. What's wrong?
image

@megapro17 megapro17 added the help wanted Extra attention is needed label May 29, 2022
@wherewhere
Copy link
Member

Please use this template if you find a bug.
Or please tell us which version of nuget package and dotnet platform you used.

@megapro17
Copy link
Author

megapro17 commented May 30, 2022

is this a bug or i'm doing something wrong??
Latest version, dotnet core 6

@wherewhere
Copy link
Member

wherewhere commented May 30, 2022

It's a bug. But I don't know how to fix it. You can renew the class and it will functional...

SyncService service = new SyncService(client, device);
var a = service.GetDirectoryListing("/");
service = new SyncService(client, device);
var b = service.GetDirectoryListing("/sdcard");

@yungd1plomat
Copy link
Member

yungd1plomat commented Jun 1, 2022

try to call service.Open(), like this

SyncService service = new SyncService(client, device);
var a = service.GetDirectoryListing("/");
service.Open();
var b = service.GetDirectoryListing("/sdcard");

@wherewhere
Copy link
Member

wherewhere commented Jun 1, 2022

try to call service.Open(), like this

SyncService service = new SyncService(client, device);
var a = service.GetDirectoryListing("/");
service.Open();
var b = service.GetDirectoryListing("/sdcard");

Sorry, it's not functional 🤣.
The SyncService can only use once. It will get nothing if you try to use it in second time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
3 participants