title: how to resolve unable to open amqp operation timeout issue in production?
body: <p>Below is the eventhub producer code. The below issue is constantly occuring for my nodejs application since few days.
  <code> Unable to open amqp connection connectionid =21 due to operation timeout</code></p>
  <p>Producer.js</p>
  <pre><code>const { EventHubProducerClient } = require(&quot;@azure/event-hubs&quot;);
  
  const connectionString = &quot;EVENT HUBS NAMESPACE CONNECTION STRING&quot;;
  const eventHubName = &quot;EVENT HUB NAME&quot;;
  
  async function main() {
  
    // Create a producer client to send messages to the event hub.
    const producer = new EventHubProducerClient(connectionString, eventHubName);
  
    // Prepare a batch of three events.
    const batch = await producer.createBatch();
    batch.tryAdd({ body: &quot;First event&quot; });
    batch.tryAdd({ body: &quot;Second event&quot; });
    batch.tryAdd({ body: &quot;Third event&quot; });    
  
    // Send the batch to the event hub.
    await producer.sendBatch(batch);
  
    // Close the producer client.
    await producer.close();
  
    console.log(&quot;A batch of three events have been sent to the event hub&quot;);
  }
  
  main().catch((err) =&gt; {
    console.log(&quot;Error occurred: &quot;, err);
  });
  </code></pre>
  <p>Package.json</p>
  <pre><code>&quot;dependencies&quot;:{
  &quot;@azure/arm-eventhub&quot;:&quot;3.3.0&quot;,
  &quot;@azure-eventhubs&quot;:&quot;5.5.2&quot;,
  &quot;@azure/eventhubs-checkpointstore-blob&quot;:&quot;1.0.1&quot;,
  &quot;@azure/identity&quot;:&quot;1.4.0&quot;,
  &quot;@azure/storage-blob&quot;:&quot;12.6.0&quot;,
  &quot;azure-arm-eventhub&quot;:&quot;3.2.0&quot;
  }
  </code></pre>
  <p>NodeJs version is 10</p>
  <p>Is there anyway to code a retry logic in case of these amqp failures?
  Can anyone help me out in resolving the issue?</p>
  <p>Thank you in advance.</p>