azure function servicebustrigger keeps getting (ServiceTimeout)

51062596 60 Reputation points
2024-10-01T09:55:09.4866667+00:00

hi,

We created an isolated function, locally it works but after deploying to azure it does not.

The network on ServiceBus and Function are public as to eliminate any network problems.

looking into kudu logs we see:

Message processing error (Action=Receive, EntityPath=queuemes, Endpoint=myappservicebusdev.servicebus.windows.net)

Azure.Messaging.ServiceBus.ServiceBusException : The operation did not complete within the allocated time 00:01:00 for object tls15. (ServiceTimeout). For troubleshooting information, see https://aka.ms/azsdk/net/servicebus/exceptions/troubleshoot. ---> System.TimeoutException : The operation did not complete within the allocated time 00:01:00 for object tls15.

a different time looking in log stream it shows:

2024-09-29T08:59:55Z   [Verbose]   Request successfully matched the route with name '' and template 'admin/warmup'
2024-09-29T09:01:18Z   [Information]   Message processing error (Action=Receive, EntityPath=
queuemes, Endpoint=myappservicebusdev.servicebus.windows.net)

the function code:

    [FunctionName("FunctionQueue1")]
    public void Run([ServiceBusTrigger("queuemes", Connection = "ServiceBusConnectionString")] string myQueueItem, ILogger log)
    {
        log.LogInformation($"FunctionQueue1, C# ServiceBus queue trigger function processed message: {myQueueItem}");
    }

my startup.cs file:

   class Startup : FunctionsStartup
   {
       public override void ConfigureAppConfiguration(IFunctionsConfigurationBuilder builder)
       {
       }
       public override void Configure(IFunctionsHostBuilder builder)
       {
       }
   }

any help on what am i doing wrong would be greatly appreciated...

I'm at this for over a week

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
633 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,083 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,002 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,831 Reputation points
    2024-10-22T11:04:11.7466667+00:00

    @51062596 Thanks for reaching out. The error message you are seeing indicates that the Service Bus trigger was unable to establish a connection or link to the Service Bus service. This can happen due to network issues or other transient errors that are common in network communication.

    However, if you are not experiencing any interruptions to your message processing, you can safely ignore this error message. The Service Bus client used by the trigger will continue to retry connecting to the service indefinitely until it is able to establish a connection.

    If you are experiencing an impact to throughput or messages not flowing consistently, you may need to investigate the issue further please open an Azure support request if the issue persists. If you don't have a support plan, please let me know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.