Fixing “Upload Aborted or Timed Out” errors in iTunes Connect
2013-08-09 06:10
253 查看
http://www.reigndesign.com/blog/fixing-upload-aborted-or-timed-out-errors-in-itunes-connect/
When you're uploading screenshots to iTunes Connect, you may run into the error "Upload Aborted or Timed Out". This can be very frustrating if you're on a slow connection. Sometimes, retrying the upload may succeed, or
converting the files to JPGs.
This is not ideal: we'd like to be able to upload nice hi-res iPad screenshots, even on a slow connection. I did some digging in iTunes Connect's Javascript. It turns out it uses a component called LCUploader to handle the uploading. Deep in the bowels of
a file called lc_ajaxcomponents.js, we find this code:
Aha! It appears that this check is incorrectly causing the upload to time out after 10 seconds. We can override this function at runtime. Paste the following code into your browser's address bar:
This overrides the function with an empty one. Now we're able to upload larger files with no issues, even on a bad wifi connection in Tonga
When you're uploading screenshots to iTunes Connect, you may run into the error "Upload Aborted or Timed Out". This can be very frustrating if you're on a slow connection. Sometimes, retrying the upload may succeed, or
converting the files to JPGs.
This is not ideal: we'd like to be able to upload nice hi-res iPad screenshots, even on a slow connection. I did some digging in iTunes Connect's Javascript. It turns out it uses a component called LCUploader to handle the uploading. Deep in the bowels of
a file called lc_ajaxcomponents.js, we find this code:
self.timerId = setInterval(function() { self.checkUploadHeartbeat(); }, 10000); ... this.checkUploadHeartbeat = function() { if (this.lastProgressDate == 0) { return; } var now = new Date().getTime(); var diff = now - this.lastProgressDate; if (diff > 10000) { // We have waited more than 10 seconds without any bytes being pushed clearInterval(this.timerId); // Mark the request as being aborted this.aborted = true; // And finally abort the XHR this.xhrRequest.abort(); this.displayErrorMessage("Upload Aborted or Timed Out."); this.reset(); this.stopSpinner();
Aha! It appears that this check is incorrectly causing the upload to time out after 10 seconds. We can override this function at runtime. Paste the following code into your browser's address bar:
javascript:LCUploader.prototype.checkUploadHeartbeat = function() {};void(0);
This overrides the function with an empty one. Now we're able to upload larger files with no issues, even on a bad wifi connection in Tonga
相关文章推荐
- Fatal NI Connect Error 12170, 'TNS-12535: TNS:operation timed out' Reported in 11g Alert Log
- Fatal NI Connect Error 12170, 'TNS-12535: TNS:operation timed out' Reported in 11g Alert Log
- Autogrow of file '******' in database '******' was cancelled by user or timed out after ****** milli
- iOS - Applications must be ready for upload on iTunes Connect before they can be validated or submit
- fail to connect; session timed out or 连接失败 会话已超时
- Applications must be ready for upload on iTunes Connect before they can be validated or submitted from within Xcode.
- Android Studio Error:Connection timed out: connect.解决方案
- Androidgradle报错之:Error:Connection timed out: connect
- 使用AS遇到Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the pro
- android studio failed to open zip file .Android Studio Error:Connection timed out: connect.
- com.microsoft.sqlserver.jdbc.SQLServerException: 到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection timed out: connect数据库
- Deprecated: mysql_connect...use mysqli or PDO instead in
- Error Code: 1414. OUT or INOUT argument 2 for routine company.new_procedure is not a variable or NEW
- GCM google云推送异常 java.net.ConnectException: Connection timed out: connect
- Network error IOException: Connection timed out: connect
- java.net.ConnectException: Connection timed out: connect--解决方案
- Flume启动时报错Caused by: java.lang.InterruptedException: Timed out before HDFS call was made. Your hdfs.callTimeout might be set too low or HDFS calls are taking too long.解决办法(图文详解)
- 调用Axis Webservice异常: java.net.ConnectException: Connection timed out: connect
- SOAPUI Exception:ERROR:java.net.ConnectException: Connection timed out: connect Solution