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.

[QUERY] Looking for similar issue "TimeoutException continuously happened"

See original GitHub issue

Query/Question We have Eventhub upgrade and TmeoutException occurred during sending event to Eventhub. TimeoutException continued until restarting the client IIS and this issue was mitigated after restarting. This issue happened frequently from August 7th.

Here is code snippet

try
{
    FooTrace.Info("IM00002", $"sendToEventHub {eventData.PartitionKey}");
    eventHubInfo.Client.Send(eventData);
}
catch (MessagingException me)
{
    if (me.IsTransient == false)
    {
        FooTrace.Error("EM00001", me, "sendToEventHub error. " + eventHubInfo.Client.Path);
        throw;
    }
    FooTrace.Info("IM00001", me, "sendToEventHub busy. " + eventHubInfo.Client.Path);
    throw new LdcIfException(LdcStatusCode.ServiceUnavailable, "eventhub is busy.");
}
catch (TimeoutException te)
{
    FooTrace.Info("IM00001", te, "sendToEventHub timeout. " + eventHubInfo.Client.Path);
    // operation timeout default 1 min
    throw new LdcIfException(LdcStatusCode.ServiceUnavailable, "eventhub timeout.");
}

Stack Trace

System.TimeoutException: The operation has timed out. Reference:af2766695b4145db817366c851cbcf92_G5, TrackingId:N/A, Timestamp:8/22/2021 3:55:34 AM ---> System.TimeoutException: The operation has timed out.
   at Microsoft.ServiceBus.Messaging.SingletonManager`1.EndGetInstance(IAsyncResult asyncResult)
   at Microsoft.ServiceBus.Messaging.Amqp.AmqpMessageSender.SendAsyncResult.<>c.<GetAsyncSteps>b__11_1(SendAsyncResult thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Amqp.AmqpMessageSender.OnEndSendEventData(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.EventHubClient.Send(EventData data)
   at Panasonic.Pcpf.Ldc.LdcIf.Common.M2MHandler.SendToEventHub(LdcPacket packet, String senderId, String serviceType, String senderType, EventHubClientInfo eventHubInfo)

We use the very old client library and plan to upgrade it . Actually , we are very aware of that we need to upgrade the SDK version. But we are looking for the confirmation the issue was solved in the latest version before the upgrading.

If you know the similar issue which TimeoutException continuously happen until app restarted and it resolved, please let me know.

Environment:

  • Name and version of the Library package used: WindowsAzure.ServiceBus 4.1.6
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): Windows Server 2016、 .NET Framework 4.6.2
  • IDE and version : Visual Studio Professional 2017 Version 15.9.26

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
serkantkaracacommented, Oct 5, 2021

It is always recommended to stay up to date with the latest version of an SDK. There are numerous fixes and improvements in the client code past 3 years and you well may be hitting one of those issues fixed. Please upgrade to the latest release at https://www.nuget.org/packages/WindowsAzure.ServiceBus/6.2.0

0reactions
kekatahicommented, Oct 12, 2021

Thank you for checking . We will upgrade the SDK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - SELECT times out from program but works from SQL ...
The SQLCommand throws a timeout exception: "The timeout period elapsed prior to the completion of the operation or the server is not responding" ......
Read more >
SQL Server Timeout exception for multiple Users using ...
So a good first step would be to look at the execution plans and missing indexes for all of the queries in the...
Read more >
Strange TimeoutException on some jobs (others work fine)
Hi, I'm having a hard time finding out an issue causing TimeoutException. I have a WAR file which runs several batch jobs internally....
Read more >
java.util.concurrent.TimeoutException thrown at random ...
Bug Report Netty at random times gets a read timeout at. This happens at different selenium commands ( for example: WebDriver.switchTo().
Read more >
Troubleshoot query time-out errors - SQL Server
This article describes how to troubleshoot the time-out errors when you run slow-running queries.
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