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.
623 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,981 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.
10,919 questions
0 comments No comments
{count} votes

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.