From 9efaed5ca97132cc5b2fbbae4f85d2aa3ef885d2 Mon Sep 17 00:00:00 2001 From: Matthias Sebastian Sort Date: Wed, 7 Aug 2024 09:10:25 +0200 Subject: [PATCH 1/2] Added retry when endpoint is not ready for use with a sleep of 5 seconds with 2 retrys --- ...web.DataIntegration.Providers.ODataProvider.csproj | 2 +- src/ODataSourceReader.cs | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj index ef42dce..c708fdf 100644 --- a/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj @@ -1,6 +1,6 @@  - 10.6.0 + 10.6.1 1.0.0.0 OData Provider The Odata Provider lets you fetch and map data from or to any OData endpoint. diff --git a/src/ODataSourceReader.cs b/src/ODataSourceReader.cs index 0b694f6..0d9402a 100644 --- a/src/ODataSourceReader.cs +++ b/src/ODataSourceReader.cs @@ -564,7 +564,7 @@ private IEnumerable> ExtractStream(Stream responseStr yield return null; } - private bool HandleRequest(string url, string loggerInfo, IDictionary headers) + private bool HandleRequest(string url, string loggerInfo, IDictionary headers, int retryCounter = 0) { if (CheckIfEndpointIsReadyForUse(url)) { @@ -592,6 +592,15 @@ private bool HandleRequest(string url, string loggerInfo, IDictionary Date: Tue, 27 Aug 2024 08:40:59 +0200 Subject: [PATCH 2/2] bump version for release --- src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj index c708fdf..59ef310 100644 --- a/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.ODataProvider.csproj @@ -1,6 +1,6 @@  - 10.6.1 + 10.6.4 1.0.0.0 OData Provider The Odata Provider lets you fetch and map data from or to any OData endpoint.