-
Notifications
You must be signed in to change notification settings - Fork 27.4k
$http hangs (or something) after being invoked within a Fineuploader method. #2557
Comments
It looks like $scope.apply() after calling the submit method gets the http request going. Not sure why the behavior change, but glad it now works. |
Can you provide some more concrete example of this problem? Perhaps a link to some code? |
I can verify the exact same symptoms. I have a method addMoreThings. It gets called once when the Ctrl inits, and then it gets called each time I scroll to the end of the list (think infinite scroll). When the Ctrl loads, the calls works fine. However, when I scroll to the bottom, it fires the http, but no network traffic is logged. However, as @sweisman mentions, calling a $scope.$apply() forces it to resume. |
In my case, it used to work with older versions. I hadn't tested this In any case, I can understand why I need to $apply() now, because But since $apply() does the job, I am happy. Especially since Angular kicks On Wed, May 1, 2013 at 9:59 PM, Aaron Frost notifications@github.comwrote:
|
I believe it's related to this: #2371 |
As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months. Please try the newest versions of Angular ( Thanks! |
I don't know if this is an Angular or FineUploader problem, but there is a problem in the interaction later versions of Angular with it.
I have a site that uploads files (using FineUploader) within an Angular controller. When the file uploading is done, it then invokes a function that uses $http.post() to upload a standard form.
Until recently, this process worked flawlessly.
I haven't tested it in a few iterations (I'm on 1.1.4 now) but now, after the successful file uploading, I see the $http invocation within the JS debugger and...nothing happens. It hangs.
The uploader object is stored in $scope.uploader.
I originally thought it was a problem with FineUploader, but now I'm not so sure. The form is on a modal. After doing the submit (which fails to complete, hanging on the $http.post() invocation), if I close the modal and then reopen it, the $http.post() call finally completes.
Can someone explain further how $http works, and why it might hang?
The text was updated successfully, but these errors were encountered: