× Requesting snapshot upload - failed! Error: Response timeout of 5000ms exceeded


#1

Please help me to solve the issue:
I just started new blank app and trying to build: ionic package build but the output I am getting is:

× Requesting snapshot upload - failed!
Error: Response timeout of 5000ms exceeded


#2

If anyone know about the issue please help me out


#3

Post your ionic info output please.
Is your connection really slow or blocked somehow?
Can you ionic upload the project?


#4

My Ionic info:

global packages:             
                                                                                                                                                                                                                                                                                                                       @ionic/cli-utils : 1.5.0         
Cordova CLI      : 7.0.1                                                                                                                                                
Ionic CLI        : 3.5.0          
                                                                                                                                                                                                                                                                                                          local packages:                                                                                                                                                                                                                                                                                                                                     
@ionic/app-scripts              : 2.0.1                                                                                                                                 
@ionic/cli-plugin-cordova       : 1.4.1                                                                                                                                 
@ionic/cli-plugin-ionic-angular : 1.3.2                                                                                                                                 
Cordova Platforms               : android 6.2.3                                                                                                                         
Ionic Framework                 : ionic-angular 3.5.0                                                                                                                                                                                                                                                                                       

System:                                                                                                                                                                                                                                                                                                                                             
Node       : v6.10.3                                                                                                                                                    
OS         : Windows 10                                                                                                                                                 
Xcode      : not installed                                                                                                                                              
ios-deploy : not installed                                                                                                                                             
 ios-sim    : not installed                                                                                                                                             
 npm        : 3.10.10`         

Getting the same error when run the commend ionic upload
Error: Response timeout of 5000ms exceed


#5

My guess: You are behind some proxy and your command line can not use it. Look into https://github.com/ionic-team/ionic-cli#using-a-proxy


#6

I have installed the global CLI proxy plugin using:
npm install -g @ionic/cli-plugin-proxy

as I am using windows that’s manually I have added system environment variables

HTTP_PROXY=http://internal.proxy.com # used by npm
HTTPS_PROXY=https://internal.proxy.com # used by npm
IONIC_HTTP_PROXY=http://internal.proxy.com

and then again run commend ionic package build now the output is:

× Requesting snapshot upload - failed!
HTTP Error 400: POST https://api.ionic.io/deploy/snapshots

                               Bad Request                                                                                  

Bad Request - Invalid URL


HTTP Error 400. The request URL is invalid.


#7

You of course have to use the address of your own proxy. http://internal.proxy.com is just an example.


#8

ok, I am just trying to develop the SMS application using https://learnionic2.com/2017/02/14/how-to-send-an-sms-with-ionic-2/ can you please let me know what would be the proxy url in that case.


#9

That depends on your local computer and network. You will have to ask your network admin about that.

(Or open a hotspot with your phone, connect to that with your computer and use that to do stuff in a network without proxy - then this probably won’t be necessary)


#10

Thank you very much its working for me now. when I used mobile hotspot :slight_smile:


#11

:heavy_multiplication_x: Downloading app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz) - failed! Error: Timeout of 25000ms reached for https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz

I am getting same issue when I trying to create new app using ionic serve appname


#12

Again, a proxy will block that. Use mobile hotspot or figure out what proxy to configure.


#13

Sorry but, can you please let me know what step I use to figure out the proxy? I am new


#14

That has nothing to do with Ionic.

Your computer, or better your command line on your computer, can not access the internet. This can be caused by a proxy setting that your browser have but not your command line, a firewall - anything that blocks connections to go outside. If it is a proxy, you can configure that in the Ionic CLI via the link I gave you above. To find out what proxy is the right one, talk to your system administrator. Same for firewall problems.