WebRequest returns undocumented code 1009 with error 5203 for one domain only
Hello. In a newly installed terminal, WebRequest() returns 1009 and GetLastError() returns 5203 for one domain. Another terminal on the same VPS reaches the same domain without any problem. I tested with a simple GET script on a live chart, and the results are below.
On the failing VPS, Invoke-WebRequest in PowerShell returns 200 for the same domain. The domain has an IPv4 address only. The real domain name is replaced here, and I can share it by private message if needed.
I have three questions:
1. What does the return code 1009 mean? I could not find it in the documentation.
2. Is there a log or a setting that shows why the terminal fails for one host only?
3. Was anything changed in the WebRequest connection handling between builds 6230 and 6295?
I posted this topic in the Japanese forum by mistake first, and I cannot delete it myself. Moderators may remove it: https://www.mql5.com/ja/forum/520099
Thank you for your help.
What OS is running on the Terminal returning 1009 ?
What's that ?
my-server.example
Forum on trading, automated trading systems and testing trading strategies
MQL5 VPS synchronization fails – Error 1009 (TLS certificate verify failed, -188)
Sergey El, 2026.11.12 14:19
Please complete the following steps and check whether the issue persists:
- Update Windows: Install the latest available Windows updates and restart your computer.
- Update MetaTrader: Update your MetaTrader terminal to build 6314 or newer, then restart the terminal.
Hello. In a newly installed terminal, WebRequest() returns 1009 and GetLastError() returns 5203 for one domain. Another terminal on the same VPS reaches the same domain without any problem. I tested with a simple GET script on a live chart, and the results are below.
On the failing VPS, Invoke-WebRequest in PowerShell returns 200 for the same domain. The domain has an IPv4 address only. The real domain name is replaced here, and I can share it by private message if needed.
I have three questions:
1. What does the return code 1009 mean? I could not find it in the documentation.
2. Is there a log or a setting that shows why the terminal fails for one host only?
3. Was anything changed in the WebRequest connection handling between builds 6230 and 6295?
I posted this topic in the Japanese forum by mistake first, and I cannot delete it myself. Moderators may remove it: https://www.mql5.com/ja/forum/520099
Thank you for your help.