Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

fix: updated the endpoint in MakeRequest #208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Analytics/Request/BlockingRequestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal class BlockingRequestHandler : IRequestHandler
internal BlockingRequestHandler(Client client, TimeSpan timeout) : this(client, timeout, null, new Backo(max: 10000, jitter: 5000)) // Set maximum waiting limit to 10s and jitter to 5s
{
}
internal BlockingRequestHandler(Client client, TimeSpan timeout, Backo backo) : this(client, timeout, null, backo)
internal BlockingRequestHandler(Client client, TimeSpan timeout, Backo backo) : this(client, timeout, null, backo)
{
}
#if NET35
Expand Down Expand Up @@ -155,7 +155,7 @@ public async Task MakeRequest(Batch batch)
_backo.Reset();
try
{
Uri uri = new Uri(_client.Config.Host + "/v1/import");
Uri uri = new Uri(_client.Config.Host + "/v1/batch");

// set the current request time
batch.SentAt = DateTime.Now.ToString("o");
Expand Down Expand Up @@ -305,7 +305,7 @@ public async Task MakeRequest(Batch batch)
});
retry = true;
}
catch (System.Exception e)
catch (System.Exception e)
{
Logger.Info("HTTP Post failed with exception of type Exception", new Dict
{
Expand Down