-
Notifications
You must be signed in to change notification settings - Fork 335
Message: TypeError: null is not an object (evaluating 'result.lengthComputable') #234
Comments
Hello @aaronorosen thank you for filling the issue. Would you have a chance to answer several questions below?
|
I've only seen this error once. On ios device |
@aaronorosen got it, that looks very uncommon. Seems that this is transient error and we haven't seen this before/reported by anyone earlier. I believe this error may relates to logic in Cordova FileTransfer.js but changes to it should not be handled under code-push repository. |
Thanks for looking into this |
I just saw this running on an iPad 2 running iOS 9.3.5 running all latest npm packages. I also tested on iOS 12 devices, and did not get the error (yet). |
I'm seeing this now on iOS 12 as well. I just added CodePush to my app. It seems that the error rate on iOS is perhaps about 1% of active devices per day. Before switching to CodePush, I was using a homegrown OTA system that also used cordova file transfer with the same download method call. But I never got this error using the old system; only with CodePush. Here is a stack trace:
|
It also looks like this error can occur quite frequently if using WkWebView (I'm using UIWebView): And cordova-plugin-file-transfer is now deprecated, with the recommendation to transition to using newer standards-compliant platform features: Is cordova-plugin-code-push project willing to require a minimum iOS 10? That's what the next version of cordova-ios platform will require in any event: |
I also just saw that Apple has announced:
So at that point, there's really no point in using |
@annakocheshkova Thanks for reopening. I'm seeing this error come up a lot on all versions of IOS 9-12. The same issue was created in Apacha Cordova a couple years ago, and they closed it as Won't Fix, saying the plugin is deprecated, and developers should instead use the new features of XMLHttpRequest: I opened issue #485 to replace CodePush use of the file-transfer plugin to a standards-compliant implementation. |
code-push generated this error on update:
Message: TypeError: null is not an object (evaluating 'result.lengthComputable') - URL: file:///var/mobile/Containers/Data/Application/4706A9CC-AD0B-40AF-A513-F3CEAED70319/Library/NoCloud/codepush/deploy/versions/23c4ff2c63e95c6bd84f69a937ad7ee19e364d0ad091b96aa6827bdff6c0b4e5/www/cordova.js - Line: 314 - Column: 22 - Error object: {\"line\":202,\"column\":26,\"sourceURL\":\"file:///var/mobile/Containers/Data/Application/4706A9CC-AD0B-40AF-A513-F3CEAED70319/Library/NoCloud/codepush/deploy/versions/23c4ff2c63e95c6bd84f69a937ad7ee19e364d0ad091b96aa6827bdff6c0b4e5/www/plugins/cordova-plugin-file-transfer/www/FileTransfer.js\"}"
This is the first time i've seen this issue and i was able to still successfully update my app.
The text was updated successfully, but these errors were encountered: