diff --git a/source/Halibut.Tests/ExceptionContractFixture.cs b/source/Halibut.Tests/ExceptionContractFixture.cs index a3946816b..b5e1f73d4 100644 --- a/source/Halibut.Tests/ExceptionContractFixture.cs +++ b/source/Halibut.Tests/ExceptionContractFixture.cs @@ -35,7 +35,7 @@ public async Task WhenThePollingRequestQueueTimeoutIsReached_AHalibutClientExcep var client = clientOnly.CreateClientWithoutService(); (await AssertException.Throws(async () => await client.SayHelloAsync("Hello", new(CancellationToken)))) - .And.Message.Should().Contain("A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time (00:00:05), so the request timed out."); + .And.Message.Should().Contain("A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time (00:00:05), so the request timed out. Please check the tentacle logs to investigate this timeout."); } diff --git a/source/Halibut.Tests/PollingServiceTimeoutsFixture.cs b/source/Halibut.Tests/PollingServiceTimeoutsFixture.cs index d793ff02e..1c380b3fa 100644 --- a/source/Halibut.Tests/PollingServiceTimeoutsFixture.cs +++ b/source/Halibut.Tests/PollingServiceTimeoutsFixture.cs @@ -33,7 +33,7 @@ public async Task WhenThePollingRequestQueueTimeoutIsReached_TheRequestShouldTim var stopwatch = Stopwatch.StartNew(); var exception = (await AssertException.Throws(async () => await client.SayHelloAsync("Hello", new(CancellationToken)))).And; - exception.Message.Should().Contain("A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time (00:00:05), so the request timed out."); + exception.Message.Should().Contain("A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time (00:00:05), so the request timed out. Please check the tentacle logs to investigate this timeout."); exception.ConnectionState.Should().Be(ConnectionState.Connecting); stopwatch.Stop(); diff --git a/source/Halibut.Tests/ServiceModel/PendingRequestQueueFixture.cs b/source/Halibut.Tests/ServiceModel/PendingRequestQueueFixture.cs index 42ac72496..7a9150204 100644 --- a/source/Halibut.Tests/ServiceModel/PendingRequestQueueFixture.cs +++ b/source/Halibut.Tests/ServiceModel/PendingRequestQueueFixture.cs @@ -94,7 +94,7 @@ public async Task QueueAndWait_WhenPollingRequestQueueTimeoutIsReached_WillStopW // Although we sleep for 1 second, sometimes it can be just under. So be generous with the buffer. stopwatch.Elapsed.Should().BeGreaterThan(TimeSpan.FromMilliseconds(800)); response.Id.Should().Be(request.Id); - response.Error!.Message.Should().Be("A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time (00:00:01), so the request timed out."); + response.Error!.Message.Should().Be("A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time (00:00:01), so the request timed out. Please check the tentacle logs to investigate this timeout."); var next = await sut.DequeueAsync(CancellationToken); next.Should().BeNull(); @@ -123,7 +123,7 @@ public async Task QueueAndWait_WithRelyOnConnectionTimeoutsInsteadOfPollingReque // Although we sleep for 1 second, sometimes it can be just under. So be generous with the buffer. stopwatch.Elapsed.Should().BeGreaterThan(TimeSpan.FromMilliseconds(800)); response.Id.Should().Be(request.Id); - response.Error!.Message.Should().Be("A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time (00:00:01), so the request timed out."); + response.Error!.Message.Should().Be("A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time (00:00:01), so the request timed out. Please check the tentacle logs to investigate this timeout."); var next = await sut.DequeueAsync(CancellationToken); next.Should().BeNull(); diff --git a/source/Halibut/ServiceModel/PendingRequestQueueAsync.cs b/source/Halibut/ServiceModel/PendingRequestQueueAsync.cs index b7a5c371f..e7a50707b 100644 --- a/source/Halibut/ServiceModel/PendingRequestQueueAsync.cs +++ b/source/Halibut/ServiceModel/PendingRequestQueueAsync.cs @@ -291,7 +291,7 @@ public async Task WaitUntilComplete(CancellationToken cancellationToken) log.Write(EventType.MessageExchange, "Request {0} timed out before it could be collected by the polling endpoint", request); SetResponse(ResponseMessage.FromException( request, - new TimeoutException($"A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time ({request.Destination.PollingRequestQueueTimeout}), so the request timed out."), + new TimeoutException($"A request was sent to a polling endpoint, but the polling endpoint did not collect the request within the allowed time ({request.Destination.PollingRequestQueueTimeout}), so the request timed out. Please check the tentacle logs to investigate this timeout."), ConnectionState.Connecting)); } }