-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
RequestHelper.Abort() throws exception #103
Comments
Very odd because we're validating here https://github.com/proyecto26/RestClient/blob/master/src/Proyecto26.RestClient/Helpers/RequestHelperExtension.cs#L124 |
Yeah that looks reasonable, in fact I added check even for !isDone, but it shouldnt change anything. Everytime I tried to access anything in the UnityWebRequest instance I got that exception |
I'm not sure what validation to add here to fix the exception thrown by the |
I've the same problem when I check the download progress of a file that has already finished downloading. It looks like you're referring to UnityWebRequest object after it has been disposed by using block. |
Please attach any reproducible demo to debug 🙂 |
I really appreciate your work. It's a really good piece of code. Thanks man :) The following example downloads an image and after that checks progress and call Abort() with some delay. This actions cause errors.
|
I think you can't call |
The problem is not just about call Abort(). |
Thanks mate, let me check, also any pull request is welcome! <3 |
Hi, I want to discard all requests that are made as soon as I leave given scene, so my code is:
I get exception in editor when calling requestHelper.Abort() :
I have unity 2019.2.13f1 and RestClient version 2.6.0. My idea is I dont want to receive any callbacks from any requests after user leaves given scene, cant tell what this error means though.
The text was updated successfully, but these errors were encountered: