KATSUYA TODO 1分前
Subject: WebRequest Overload Error - No Custom Include, Standard Signature Only
Hello,
I am experiencing a persistent error with WebRequest in MQL5:
"no one of the overloads can be applied to the function call"
Even when using the official standard WebRequest signature (string/uchar[] only, as per documentation), the error persists.
- There is NO custom include, NO wininet.mqh, and NO self-defined WebRequest.
- All projects and folders (Include, Experts, Scripts, Services, etc.) have been checked and cleaned.
- MetaTrader 5 and MetaEditor were reinstalled and all AppData/Terminal/Include directories were manually deleted.
- I tested on a new Windows user profile, but the error remains.
- The code is exactly as in the MQL5 documentation sample (see below):
#property strict
void OnStart()
{
string url = "https://hooks.slack.com/services/xxxx/yyyy/zzzz"; // ←テスト用任意
string body = "{\"text\":\"TEST\"}";
uchar post[];
StringToCharArray(body, post, 0, WHOLE_ARRAY, CP_UTF8);
uchar result[];
string headers = "Content-Type: application/json\r\n";
string cookie = "";
string res_headers = "";
int timeout = 5000;
int code = WebRequest(
"POST",
url,
cookie,
headers,
timeout,
post, // uchar[] 型
result, // uchar[] 型
res_headers
);
Print("WebRequest code=", code, " result=", CharArrayToString(result));
}
Could you please investigate if there is a hidden system cache, standard library bug, or additional registry/cache that must be reset?
Is there any known Windows/MQL5 configuration that could cause this error?
Thank you in advance for your support.
Best regards,
KATSUYA TODO
Subject: WebRequest Overload Error - No Custom Include, Standard Signature Only
Hello,
I am experiencing a persistent error with WebRequest in MQL5:
"no one of the overloads can be applied to the function call"
Even when using the official standard WebRequest signature (string/uchar[] only, as per documentation), the error persists.
- There is NO custom include, NO wininet.mqh, and NO self-defined WebRequest.
- All projects and folders (Include, Experts, Scripts, Services, etc.) have been checked and cleaned.
- MetaTrader 5 and MetaEditor were reinstalled and all AppData/Terminal/Include directories were manually deleted.
- I tested on a new Windows user profile, but the error remains.
- The code is exactly as in the MQL5 documentation sample (see below):
#property strict
void OnStart()
{
string url = "https://hooks.slack.com/services/xxxx/yyyy/zzzz"; // ←テスト用任意
string body = "{\"text\":\"TEST\"}";
uchar post[];
StringToCharArray(body, post, 0, WHOLE_ARRAY, CP_UTF8);
uchar result[];
string headers = "Content-Type: application/json\r\n";
string cookie = "";
string res_headers = "";
int timeout = 5000;
int code = WebRequest(
"POST",
url,
cookie,
headers,
timeout,
post, // uchar[] 型
result, // uchar[] 型
res_headers
);
Print("WebRequest code=", code, " result=", CharArrayToString(result));
}
Could you please investigate if there is a hidden system cache, standard library bug, or additional registry/cache that must be reset?
Is there any known Windows/MQL5 configuration that could cause this error?
Thank you in advance for your support.
Best regards,
KATSUYA TODO