• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
kCFErrorDomainCFNetwork
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kCFErrorDomainCFNetwork


  • Subject: kCFErrorDomainCFNetwork
  • From: Chris Griffin <email@hidden>
  • Date: Wed, 31 Dec 2008 16:28:41 -0800

I have written an app that accepts requests for a URL. It then opens up a window with a WebView and tells it to go to that URL. Once the page has loaded I do some stuff and return values to the original requester. This all works well. In fact I can't get it to fail on my MacBookPro (10.5.6/Safari 3.2.1) machine. However when I deploy it to an XServe (10.5.6/Safari 3.2.1) it will run for somewhere between 40-60 requests and then I will get the following error from the WebView:

NSErrorFailingURLStringKey: http://xxxxxx.com/

NSUnderlyingError: Error Domain=kCFErrorDomainCFNetwork Code=-998 UserInfo=0x2344c340 "Operation could not be completed. (kCFErrorDomainCFNetwork error -998.)"

NSErrorFailingURLKey: http://xxxxxx.com/

    domain: NSURLErrorDomain
description: Operation could not be completed. (NSURLErrorDomain error -1.)
      code: -1

I have code in place for recovering from an error and moving on. In fact I release the window the WebView is in and allocate another one fresh whenever there was an error.  Except once this error occurs I will get the same errors for subsequent page requests to the WebView. These request are coming in one after another. According to the NSURLErrorDomain errors with -1 are:


NSURLErrorUnknown

Returned when the URL Loading system encounters an error that it cannot interpret.

This can occur when an error originates from a lower level framework or library. Whenever this error code is received, it is a bug, and should be reported to Apple.


So now what? Anyone seen this? Any work around?


Thanks,

Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSURLConnection Latency on iPhone
  • Previous by thread: Re: NSURLConnection Latency on iPhone
  • Index(es):
    • Date
    • Thread