Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5961093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:55:01+00:00 2026-05-22T18:55:01+00:00

I am seeing this wired problem where when i launch my app i get

  • 0

I am seeing this wired problem where when i launch my app i get continuous(4-5 times) error message sometime it says

  1. “data connection cannot be established since a call is currently active” there is no active call

  2. The request timed out

  3. A server with the specified hostname could not be found.

and when you click ok, couple of times the error message goes away and the app works without any problem.

I am doing two things when the app launches, i start updating the current location using the CLLocationManager and once i get the location I make two async call using NSURLConnection, i see that didFailWithError method in my NSURLConnection delegate method getting called,
all the message comes from there, so what i am trying to figure out is

  1. Why it is coming, my server is fine i have proper internet connection ( I am on wifi not on cell phone data)
  2. Why it comes so many times, i am firing only two request.

It starts behaving a bad launch. I was wondering if it needs some warm up time or something like that. I would like to display the error message but not all of them probably one is fine like even if there is no data connection, displaying so many times will annoy the user.

Here is the code in my didFailWithError.

 UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error"
                                                     message:[NSString stringWithFormat:@"Error code is %d", [error code]]
                                                    delegate:nil
                                           cancelButtonTitle:@"OK"
                                           otherButtonTitles:nil];
  [alertView show];
  [alertView release];

One more question how do i print the actual error message instead of this cryptic error code.

Thanks for helping me out.

[EDIT] code for establishing the connection

    NSURL *getURL = [NSURL URLWithString: urlString];   

    NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];

//add our HTTP headers and URL
[request setValue: @ "plain/text" forHTTPHeaderField : @"Content-Type"];
[request setHTTPMethod:@"GET"];
[request setURL : getURL];

NSURLConnection* urlConnection =
   [[[NSURLConnection alloc] initWithRequest:request 
                                    delegate:delegate  
                            startImmediately:YES] autorelease];

Yogesh

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:55:01+00:00Added an answer on May 22, 2026 at 6:55 pm

    i found the answer for this, actually i have signficantLocationChange thing on, and what is happening is when the app wakes after due to the signficantLocationChange, app is suppose to make a server call to get some information, and what is happening is when the app wakes up there are situation when there is no data connection available, so all the errors are getting pilled up, and when the user opens the app he see all of that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm seeing this error several times an hour on my production site and am
I am seeing this error intermittently. My app throws PageRequestManager is undefined and so
I recently started seeing this error message when trying to run any Cucumber tests.
I'm seeing this in the Debugger Console: <Error>: CGImageSourceGetType image source parameter is nil\n
I'm seeing this exception message coming from XslCompiledTransform.Transform(), but after handling the exception the
I am seeing this somehow odd problem (even though I have the feeling I
I am using AR's sum method for a query and seeing this error when
I am getting the following error when using Windows 7. I started seeing this
I'm seeing this error when I run: rake/gem from my Git Bash. Anyone know
I am seeing this error: Unable to cast object of type 'System.Web.Profile.DefaultProfile' to type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.