Multiple HTTP Requests Failing After First Request in cTrader 5.3.49

Created at 06 Mar 2025, 21:51
BM

bml67

Joined 06.03.2025

Multiple HTTP Requests Failing After First Request in cTrader 5.3.49
06 Mar 2025, 21:51


Issue

In cTrader 5.3.49, only the first HTTP request succeeds. Any subsequent requests (whether in OnStart(), OnTimer(), or anywhere in the code) fail with HTTP Status: 0 and an empty response.

 

Steps to Reproduce

Run the following test in cTrader 5.3.49:

using System;
using cAlgo.API;

namespace cAlgo.Robots
{
   [Robot(AccessRights = AccessRights.None)]
   public class HttpBugTest : Robot
   {
       protected override void OnStart()
       {
           TestHttpRequests();
       }

       private void TestHttpRequests()
       {
           var request1 = new HttpRequest(new Uri("https://example.com/api/test1"));
           request1.Method = HttpMethod.Get;
           var response1 = Http.Send(request1);
           Print($"Request 1 Status: {response1.StatusCode}, Body: {response1.Body}");

           var request2 = new HttpRequest(new Uri("https://example.com/api/test2"));
           request2.Method = HttpMethod.Get;
           var response2 = Http.Send(request2);
           Print($"Request 2 Status: {response2.StatusCode}, Body: {response2.Body}");
       }
   }
}

 

Expected Behavior

Both HTTP requests should work and print valid responses.

 

Actual Behavior

Request 1 succeeds (prints valid body).

Request 2 fails (Status: 0, Body: empty).

• If you comment out Request 1, then Request 2 works, proving cTrader blocks multiple requests.

 

Tested On

5.2.40 ✅ Works

5.3.49 ❌ Fails

 

This issue did not exist in older versions. Only the first request works in cTrader 5.3.49, no matter where it is executed.

🔹 Please confirm if this is a bug or an intentional change.


@bml67
Replies

soskrr
22 Mar 2025, 11:10

Hi,

i am getting this error as well. It happened after the most recent update. did you get a way to fix it ?


@soskrr

bml67
22 Mar 2025, 21:47 ( Updated at: 24 Mar 2025, 06:56 )

RE: Multiple HTTP Requests Failing After First Request in cTrader 5.3.49

soskrr said: 

Hi,

i am getting this error as well. It happened after the most recent update. did you get a way to fix it ?

Hi 👋

I contacted support and just received this response from them:

“Dear Trader,

Thank you for your patience in this matter. Please be advised that the issue at hand is indeed a bug and the team is actively working on it and we aim to release the fix in the next minor version update.

Thank you once again for your understanding.”

So it’s definitely a confirmed bug, and they’re already working on a fix. Hopefully it’ll be resolved in the next minor release. 🙌


@bml67

rene_ulbricht
23 Mar 2025, 14:53 ( Updated at: 24 Mar 2025, 06:56 )

RE: Multiple HTTP Requests Failing After First Request in cTrader 5.3.49

Hi there,

I'm using version 5.2.5.38882 of cTrader and cTrader.Automate 1.0.12. This comes with the upgrade in March 2025.

Since cTrader leaves the previous version on the system, I checked with cTrader_5.1.14.37960.exe and this works w/o any problems.

Just doing two Http.Get in a row and the second fails no matter what!

Please fix this asap. BTW changing the cTrader.Automate version and downgrading it does not help.

Interessting and unacceptable at all - when uploading the bot in the cloud NO http request works!

Regards,

René

 


@rene_ulbricht

bml67
23 Mar 2025, 17:46 ( Updated at: 24 Mar 2025, 06:56 )

Update:

I just tested the newly released cTrader version 5.3.60 today — unfortunately, the bug still persists.

The second HTTP request (regardless of where it’s placed — OnStart, OnTimer, etc.) still fails silently after the first one succeeds.


@bml67

soskrr
25 Mar 2025, 13:26

RE: Multiple HTTP Requests Failing After First Request in cTrader 5.3.49

bml67 said: 

Update:

I just tested the newly released cTrader version 5.3.60 today — unfortunately, the bug still persists.

The second HTTP request (regardless of where it’s placed — OnStart, OnTimer, etc.) still fails silently after the first one succeeds.

Any update yet? Did you get an estimated time?

Best Regards


@soskrr

soskrr
25 Mar 2025, 13:26

RE: Multiple HTTP Requests Failing After First Request in cTrader 5.3.49

bml67 said: 

Update:

I just tested the newly released cTrader version 5.3.60 today — unfortunately, the bug still persists.

The second HTTP request (regardless of where it’s placed — OnStart, OnTimer, etc.) still fails silently after the first one succeeds.

Any update yet? Did you get an estimated time?

Best Regards


@soskrr

ctid8068054
28 Mar 2025, 02:11 ( Updated at: 28 Mar 2025, 07:18 )

RE: RE: Multiple HTTP Requests Failing After First Request in cTrader 5.3.49

soskrr said: 

bml67 said: 

Update:

I just tested the newly released cTrader version 5.3.60 today — unfortunately, the bug still persists.

The second HTTP request (regardless of where it’s placed — OnStart, OnTimer, etc.) still fails silently after the first one succeeds.

Any update yet? Did you get an estimated time?

Best Regards

 

Hello there, would anyone know of a workaround until cTrader bug fixed and released ? I am stuck on 5.2.5 


@ctid8068054

soskrr
04 Apr 2025, 11:45

RE: RE: RE: Multiple HTTP Requests Failing After First Request in cTrader 5.3.49

ctid8068054 said: 

soskrr said: 

bml67 said: 

Update:

I just tested the newly released cTrader version 5.3.60 today — unfortunately, the bug still persists.

The second HTTP request (regardless of where it’s placed — OnStart, OnTimer, etc.) still fails silently after the first one succeeds.

Any update yet? Did you get an estimated time?

Best Regards

 

Hello there, would anyone know of a workaround until cTrader bug fixed and released ? I am stuck on 5.2.5 

Hi, did you get a way to work around this? 


@soskrr

bml67
07 Apr 2025, 11:39

RE: RE: RE: RE: Multiple HTTP Requests Failing After First Request in cTrader 5.3.49

soskrr said: 

ctid8068054 said: 

soskrr said: 

bml67 said: 

Update:

I just tested the newly released cTrader version 5.3.60 today — unfortunately, the bug still persists.

The second HTTP request (regardless of where it’s placed — OnStart, OnTimer, etc.) still fails silently after the first one succeeds.

Any update yet? Did you get an estimated time?

Best Regards

 

Hello there, would anyone know of a workaround until cTrader bug fixed and released ? I am stuck on 5.2.5 

Hi, did you get a way to work around this? 

Hi,

I don’t, unfortunately.

If HTTP/S requests are mandatory for your bot, the only workaround for now is to use an older version of cTrader. Some brokers still offer their own version of the platform, and it’s usually one release behind — where the requests still work fine.

Otherwise, we’ll just have to wait for the bug fix release.

Let’s hope it’s coming soon!


@bml67

bml67
16 Apr 2025, 10:50

Update

I just updated to cTrader 5.3.62 on macOS — the bug is now resolved on this version 🎉

However, on the latest Windows version, the bug still persists, but I assume the Windows fix should be coming next. Fingers crossed 🤞


@bml67

soskrr
16 Apr 2025, 10:54

RE: Update

bml67 said: 

I just updated to cTrader 5.3.62 on macOS — the bug is now resolved on this version 🎉

However, on the latest Windows version, the bug still persists, but I assume the Windows fix should be coming next. Fingers crossed 🤞

Thanks for the update! 

let’s just wait for the windows update.

best regards


@soskrr

soskrr
16 Apr 2025, 10:54

RE: Update

bml67 said: 

I just updated to cTrader 5.3.62 on macOS — the bug is now resolved on this version 🎉

However, on the latest Windows version, the bug still persists, but I assume the Windows fix should be coming next. Fingers crossed 🤞

Thanks for the update! 

let’s just wait for the windows update.

best regards


@soskrr

soskrr
18 Apr 2025, 09:38

RE: Update

bml67 said: 

I just updated to cTrader 5.3.62 on macOS — the bug is now resolved on this version 🎉

However, on the latest Windows version, the bug still persists, but I assume the Windows fix should be coming next. Fingers crossed 🤞

Hi,

May I ask how you updated your cTrader to latest version on windows. Mine is still on version 5.2.5.38882

kind regards


@soskrr