The url which is called doesn't seem to matter. The same exception will always be thrown.
This is the exception which gets thrown:
2015-07-24 08:57:42,203 [6] ERROR Umbraco.Web.Scheduling.ScheduledTasks - [P6828/T1/D2] An error occurred calling web task for url: http://localhost:53373/umbraco/api/Test/TestMethod
System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
bei System.Net.HttpWebRequest.CheckProtocol(Boolean onRequestStream)
bei System.Net.HttpWebRequest.BeginGetRequestStream(AsyncCallback callback, Object state)
bei System.Net.Http.HttpClientHandler.StartGettingRequestStream(RequestState state)
bei System.Net.Http.HttpClientHandler.PrepareAndStartContentUpload(RequestState state)
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
bei Umbraco.Web.Scheduling.ScheduledTasks.
When I am using an older version e.g. 7.2.0 The scheduler works fine and the url gets called.
so I looked a little bit further into the problem and the scheduler works fine for me until version 7.2.6. After that the above mentioned exception gets thrown.
It seems the exception gets thrown in this method in the ScheduledTasks class of Umbraco:
Did anyone find a solution to this, other than upgrade?
I just upgraded a solution to 7.2.8 and now i got this error.
I can fix the unpublish task by setting the umbracoApplicationUrl="https://www.domain.com/umbraco" in the web.routing in umbracoSettiongs.config file. but it does not fix added tasks.
Error when using Umbraco task scheduler
Hi all,
I am trying to use the Umbraco task scheduler in Umbraco 7.2.8. Each time the scheduler tries to run the task an exception is being thrown.
The task in the umbracoSettings.config file looks like this:
The url which is called doesn't seem to matter. The same exception will always be thrown.
This is the exception which gets thrown:
When I am using an older version e.g. 7.2.0 The scheduler works fine and the url gets called.
Thanks for any help
Dennis
Hi all,
so I looked a little bit further into the problem and the scheduler works fine for me until version 7.2.6. After that the above mentioned exception gets thrown.
It seems the exception gets thrown in this method in the ScheduledTasks class of Umbraco:
GitHub Link to Source Code:https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web/Scheduling/ScheduledTasks.cs
The question for me is, am I doing something wrong or is it a problem Umbraco?
Thanks for any help
Dennis
Hi Dennis,
I'm seeing exactly the same problem in 7.2.8, have you had any luck solving the issue?
Thanks
Steve
Hi Steve,
not really, no.
Altough I found out, that if you change the line:
to:
in the method I mentioned in my previous post, the scheduler seems to work again.
Thanks Dennis,
I'll give that a go.
Hi,
The Method for the HttpRequestMessage should be HttpMethod.Post instead of HttpMethod.Get, see MSDN.
Hi David,
that's what I suspected as well.
So it seems to be a bug in Umbraco.
Do you know if anyone has raised an issue for this, because it looks like it is still in the code in the 7.3 betas.
No, not as far as I know.
Created an issue: U4-6990
Hi here,
Is there a way I can get it fixed in version 7.2.8 ? I don't want to upgrade to 7.3.0 since I have a live site running with this version.
Thanks
Hello All,
I am also facing same issue. Is anyone have fix for this issue ?
Thanks in Advance!
Deepak
Iv create a section to not only take over the scheduler but also to give you an area to organise them easily in the admin area.
url-task-scheduler-for-v7
So not a fix but a work around :)
How can I see backoffice of your Url Task Scheduler For V7? I can't see and screen of this package?
I upgraded to umbraco 7.3.4 all schedule work well now.
Did anyone find a solution to this, other than upgrade?
I just upgraded a solution to 7.2.8 and now i got this error.
I can fix the unpublish task by setting the umbracoApplicationUrl="https://www.domain.com/umbraco" in the web.routing in umbracoSettiongs.config file. but it does not fix added tasks.
is working on a reply...