Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with "Update Error!" on macOS 10.13 #1144

Closed
jessegrosjean opened this issue Oct 26, 2017 · 7 comments
Closed

Help with "Update Error!" on macOS 10.13 #1144

jessegrosjean opened this issue Oct 26, 2017 · 7 comments

Comments

@jessegrosjean
Copy link

Little background:

  1. I'm not seeing this error when updating on macOS 10.12, only 10.13
  2. The sparkle feed URL is https://www.taskpaper.com/assets/app/TaskPaper-Preview.rss
  3. I click "Check for Update".
  4. I see that a new update is available and I click "Install Update"
  5. I see "Downloading update..." and then immediately after I see a new alert saying "Update Error!"
  6. When I click "Cancel Update" I then see the following in the console.
2017-10-26 17:24:57.769277-0400 TaskPaper[2243:153265] [Sparkle] Error: An error occurred while downloading the update. Please try again later. (null) (URL https://www.taskpaper.com/assets/app/TaskPaper-3.7.5-Preview.dmg)
2017-10-26 17:24:57.769312-0400 TaskPaper[2243:153265] [Sparkle] Error: The requested URL was not found on this server. (null) (URL https://www.taskpaper.com/assets/app/TaskPaper-3.7.5-Preview.dmg)
2017-10-26 17:24:57.769375-0400 TaskPaper[2243:153265] [Sparkle] Error: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1100.) (null) (URL (null))

Any ideas?

Thanks,
Jesse

@kornelski
Copy link
Member

The URL looks fine. Maybe it's a problem with your machine? Do you have override in /etc/hosts or such?

The error comes from macOS and -1100 is kCFURLErrorFileDoesNotExist, so it really is getting 404 in this case.

@jessegrosjean
Copy link
Author

Thanks for your response. I don't think so. I've certainly not done anything like that myself, and don't have little snitch of something similar installed. Plus if I just paste the URL https://www.taskpaper.com/assets/app/TaskPaper-3.7.5-Preview.dmg into Safari then it downloads fine. I'm a little confused by the last (I think lowest down error) which reports as (kCFErrorDomainCFNetwork error -1100.) (null) (URL (null)) is that correct, reporting URL as null?

@jessegrosjean
Copy link
Author

Also if I do this within my app:

if let url = NSURL(string: "https://www.taskpaper.com/assets/app/TaskPaper-3.7.5-Preview.dmg") {
  let data = try? NSData(contentsOf: url as URL, options: [])
  Swift.print(data?.length)
}

I get Optional(8663381). So I think the file is downloadable from my computer and from within my app. Just somehow now making connection with sparkle.

@jessegrosjean
Copy link
Author

One more data point.

I've been reproducing this problem in the current version of my app by temporarily editing the version number to be and old version so that I can update. Now I've just updated Sparkle from 1.18 to 1.18.1 in my local dev version, and that seems to fix the problem. The update downloads.

But unfortunately all the apps out in the field that I do want to update are still using Sparkle 1.18 which still doesn't work for me.

@DivineDominion
Copy link
Contributor

DivineDominion commented Nov 14, 2017

I know this doesn't help Jesse or TaskPaper users to update right now, but can developers subscribe to update error result notifications somehow and offer a manual download link as fallback in these cases?

@kornelski
Copy link
Member

There's an issue open for the fallback #345

@zorgiepoo
Copy link
Member

This may have been when we were using NSURLDownload and not NSURLSession. In general to reproduce Sparkle's environment I would try to reproduce the user agent and http headers sent too.

I'm assuming this still isn't an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants