question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building a second Windows release gives a task was cancelled error

See original GitHub issue
  • 6.3.1:
  • Squirrel.Windows:

I successfully built a first windows release and create a release on my github repository with the relevant build files attached. I have a squirrel server that is correctly finding these builds and I can install my application from the packages perfectly.

When I try to build a new version of the app, the build errors out with the below error. I am not entirely sure what the actual error is here. What is this /RELEASES url? Is that valid?

Here is the relevant config from my package.json:

"build": {
  "appId": "<redacted>",
  "category": "public.app-category.utilities",
  "asar": false,
  "win": {
    "iconUrl": "<redacted>",
    "remoteReleases": "https://github.com/tom-james-watson/artpip-app",
    "remoteToken": "<redacted>"
  }
},
"directories": {
  "output": "releases"
},

Any pointers? Let me know if you need more info.

Error:

Building Squirrel.Windows installer

Error: mono exited with code 255
Output:
Trying to download RELEASES index from https://github.com/tom-james-watson/artpip-app/RELEASES
Trying to download RELEASES index from https://github.com/tom-james-watson/artpip-app/RELEASES
Trying to download RELEASES index from https://github.com/tom-james-watson/artpip-app/RELEASES
Trying to download RELEASES index from https://github.com/tom-james-watson/artpip-app/RELEASES

Error output:
Attempting to sync URL as remote RELEASES folder
Failed to sync URL as GitHub repo: A task was canceled.
System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: 404 (Not Found)
  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () <0x1138b6200 + 0x000f0> in <filename unknown>:0
  at System.Net.Http.HttpClient+<GetStringAsync>c__async6.MoveNext () <0x1138b48b0 + 0x00277> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
......

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Sep 1, 2016

GH_TOKEN now reused for Squirrel.Windows sync releases.

0reactions
arkakkarcommented, Sep 20, 2017

This is resolved. Issue was due to trust certificates with mono for fetching resource over https://.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A task was canceled when building a project in Visual C++
I have a solution with two (moderately large) independent C++ projects. Before lunch, it was building and running correctly. I power down the...
Read more >
Visual Studio 2013 error - "A task was canceled" - MSDN
A few minutes ago, my project would build, and now, any time I perform any build related task, it just says "A task...
Read more >
c# - HttpClient - A task was cancelled? - Stack Overflow
There's 2 likely reasons that a TaskCanceledException would be thrown: Something called Cancel() on the CancellationTokenSource associated ...
Read more >
Error when publishing an app: "Error: A task was canceled"
I am trying to publish an app using bcinsider.azurecr.io/bcsandbox-master:ca image (Build 22070) and al language extension 0.15.14407 and ...
Read more >
Debugging Wednesday at Criteo — Cancel this task! - Medium
In the test, the service is created: Two Task instances are created in the constructor (for background processing irrelevant for this discussion) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found