发布到事件网格失败,并显示“任务已取消". [英] Publish to Event Grid failing with "A task was canceled"

查看:158
本文介绍了发布到事件网格失败,并显示“任务已取消".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近开始看到将事件发布到事件网格的问题,因为它似乎非常不可靠.我们将在北欧举办活动网格主题.在网路上搜寻,似乎我们并不孤单 而且它们只是在最近才浮出水面.参见;

We have recently started to see issues publishing events to the event grid in that it appears to be incredibly unreliable.  We are hosting the event grid topic in North Europe.  Searching the web, it seems that we are not alone in these issues and they have only surfaced very recently.  See;

https://github.com/Azure/azure-functions-host/issues/3160

https://github.com/Azure/azure-functions-host/issues/3160

https://github.com/Azure/azure-sdk-for-net/issues/4575

https://github.com/Azure/azure-sdk-for-net/issues/4575

堆栈跟踪;

{System.Threading.Tasks.TaskCanceledException:任务已取消.

  在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  在Microsoft.Rest.RetryDelegatingHandler中.<> c__DisplayClass11_0.<< SendAsync> b__1> d.MoveNext()

   at Microsoft.Rest.RetryDelegatingHandler.<>c__DisplayClass11_0.<<SendAsync>b__1>d.MoveNext()

-从上一个引发异常的位置开始的堆栈跟踪---

--- End of stack trace from previous location where exception was thrown ---

  在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

  在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  在Microsoft.Rest.RetryDelegatingHandler中.< SendAsync> d__11.MoveNext()

   at Microsoft.Rest.RetryDelegatingHandler.<SendAsync>d__11.MoveNext()

-从上一个引发异常的位置开始的堆栈跟踪---

--- End of stack trace from previous location where exception was thrown ---

  在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

  在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  在System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

  在System.Net.Http.HttpClient.< FinishSendAsyncBuffered> d__58.MoveNext()

   at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()

-从上一个引发异常的位置开始的堆栈跟踪---

--- End of stack trace from previous location where exception was thrown ---

  在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

  在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  在Microsoft.Azure.EventGrid.EventGridClient.< PublishEventsWithHttpMessagesAsync> d__38.MoveNext()

   at Microsoft.Azure.EventGrid.EventGridClient.<PublishEventsWithHttpMessagesAsync>d__38.MoveNext()

-从上一个引发异常的位置开始的堆栈跟踪---

--- End of stack trace from previous location where exception was thrown ---

  在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

  在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  在Microsoft.Azure.EventGrid.EventGridClientExtensions.< PublishEventsAsync> d__0.MoveNext()

   at Microsoft.Azure.EventGrid.EventGridClientExtensions.<PublishEventsAsync>d__0.MoveNext()

-从上一个引发异常的位置开始的堆栈跟踪---

--- End of stack trace from previous location where exception was thrown ---

  在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

  在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)上

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  在EventBus.AzureEventGrid.EventPublisher.Publish [TEvent](TEvent integrationEvent)}处System.Exception {System.Threading.Tasks.TaskCanceledException}

   at EventBus.AzureEventGrid.EventPublisher.Publish[TEvent](TEvent integrationEvent)} System.Exception {System.Threading.Tasks.TaskCanceledException}

推荐答案

您发布的查询尚未到达正确的论坛.为了最好的协助 您的查询,我将要求您在SO =>中发布您的查询. Azure Event Grid专用支持.另外,在SO上添加[Azure]标签将增加可见性,因为它是Microsoft赞助的标签.

The query posted by you has not reached the right forum. In order to assist best on your query, I would request you to post your query in SO => Azure Event Grid dedicated support. Additionally, adding the [Azure] tag on SO will increase visibility as it is a Microsoft Sponsored tag.

If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here


这篇关于发布到事件网格失败,并显示“任务已取消".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆