Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Jacobsen 593 posts 2389 karma points
    Jan 14, 2019 @ 15:06
    Bo Jacobsen
    0

    Error executing scheduled task - This instance has already started one or more requests.

    HI all.

    After Umbraco Cloud upgraded from 7.12.4. to 7.13.0, we are getting a tons of scheduled task about This instance has already started one or more requests.

    It has something to do with the task in the umbracoSettings.config. But no matter how many or what kind of task we set in there. We get the same error. Even a simple one to load the frontpage.

    It runs the first task, and then keep throwing this error after that.

    Message:
    Error executing scheduled task
    
    
    Exception:
    System.InvalidOperationException: This instance has already started one or more requests. Properties can only be modified before sending the first request.
       at System.Net.Http.HttpClient.CheckDisposedOrStarted()
       at System.Net.Http.HttpClient.set_BaseAddress(Uri value)
       at Umbraco.Web.Scheduling.ScheduledTasks.<GetTaskByHttpAync>d__6.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Umbraco.Web.Scheduling.ScheduledTasks.<ProcessTasksAsync>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Umbraco.Web.Scheduling.ScheduledTasks.<PerformRunAsync>d__7.MoveNext()
    
  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jan 15, 2019 @ 07:46
    Sebastiaan Janssen
    100

    Hi Bo! Well that's embarrassing, seems like a bug introduced in 7.13 🙈

    I've fixed it now and the fix will be release with 7.13.2 in a few weeks: https://github.com/umbraco/Umbraco-CMS/issues/4071

  • Bo Jacobsen 593 posts 2389 karma points
    Jan 15, 2019 @ 09:08
    Bo Jacobsen
    0

    Great Sebastian, looking forward to it.

Please Sign in or register to post replies

Write your reply to:

Draft