• 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
What generates NSURLErrorUnsupportedURL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What generates NSURLErrorUnsupportedURL?


  • Subject: What generates NSURLErrorUnsupportedURL?
  • From: Steve Christensen <email@hidden>
  • Date: Wed, 08 Feb 2017 10:38:06 -0800

I am occasionally seeing a NSURLErrorUnsupportedURL (unsupported URL) error being returned by download tasks on a background NSURLSession, on iOS. Before you ask, the URL (https://…) is properly formed, [NSURL URLWithString:] returns a non-nil URL, and as an extra manual check I did an online validation of the URL on a couple of different websites to see if I missed something.

The time between when the request is made and when it completes with an error might be a minute or so, so the framework is immediately bailing on the request. I'm wondering what part of the process generates the error. Does the server return a non-200 status code or what? Searching for more detail in the docs, etc., hasn't yielded anything except comments from people saying to make sure that the scheme is specified.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: What generates NSURLErrorUnsupportedURL?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Use WKSessionFile as Data for AVAudioPlayer?
  • Next by Date: Re: What generates NSURLErrorUnsupportedURL?
  • Previous by thread: Re: Mobile Cross Platform Solutions
  • Next by thread: Re: What generates NSURLErrorUnsupportedURL?
  • Index(es):
    • Date
    • Thread