我们最近开始发现将事件发布到事件网格的问题,因为它看起来非常不可靠 . 我们在北欧举办活动网格主题(如果这有任何区别) .

在网上搜索,似乎我们并不是唯一一个在这些问题上,而且它们最近才出现过 . 看到;

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

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

堆栈跟踪;

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

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

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

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

---从抛出异常的先前位置开始的堆栈跟踪结束---

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

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

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

在Microsoft.Rest.RetryDelegatingHandler.d__11.MoveNext()

---从抛出异常的先前位置开始的堆栈跟踪结束---

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

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

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

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

在System.Net.Http.HttpClient.d__58.MoveNext()

---从抛出异常的先前位置开始的堆栈跟踪结束---

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

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

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

在Microsoft.Azure.EventGrid.EventGridClient.d__38.MoveNext()

---从抛出异常的先前位置开始的堆栈跟踪结束---

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

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

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

在Microsoft.Azure.EventGrid.EventGridClientExtensions.d__0.MoveNext()

---从抛出异常的先前位置开始的堆栈跟踪结束---

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

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

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

在EventBus.AzureEventGrid.EventPublisher.Publish [TEvent](TEvent integrationEvent)} System.Exception