If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Regular Contributor
mohdfarhanakram
Posts: 73
Registered: ‎12-30-2011
My Device: All devices
My Carrier: RIM

Re: Error while establishing a Http connection. Once request finished signal is emitted, no invocation of slot

Hi Friend,

 

 Please add one more condition in this code.

 

  

 if(reply->error() == QNetworkReply::NoError) {


        //  Success case


    }else if(reply->error()>=1 && reply->error()<=99){  


       // Any kind of Networks error.   (like wifi is off etc.)


    }else{        

        // Some other Error
       
    }

   I think it would help you to check network availability.

 

Thanks

Mohd Farhan
Please use plain text.