You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//System.Net.ServicePointManager.SecurityProtocol = (SecurityProtocolType)0; // SystemDefault, we don't use this since it's supported only since .NET 4.7
Logger.Error("Could not pulse (error 403). Please make sure you entered a valid API token in Code::Stats settings.",ex);
393
411
if(!_hasAlreadyShownInvalidApiTokenMessage)// we want to inform user only once, and if they do not provide the token, let's not bomb him with error each time after they type something
394
412
{
395
-
MessageBox.Show("Could not pulse. Please make sure you entered a valid API token in Code::Stats settings.\nAll recorded XP from this session will be lost if you do not provide the correct API token!","Code::Stats – error 403",MessageBoxButtons.OK,MessageBoxIcon.Error);
396
413
_hasAlreadyShownInvalidApiTokenMessage=true;
414
+
MessageBox.Show("Could not pulse. Please make sure you entered a valid API token in Code::Stats settings.\nAll recorded XP from this session will be lost if you do not provide the correct API token!","Code::Stats – error 403",MessageBoxButtons.OK,MessageBoxIcon.Error);
stringHtmlResult=client.DownloadString("https://p0358.net/codestats/report.php?pluginver="+Constants.PluginVersion+"&cid="+CodeStatsPackage.Guid+"&editorname="+Constants.EditorName+"&editorver="+Constants.EditorVersion+"&is64process="+ProcessorArchitectureHelper.Is64BitProcess.ToString().ToLowerInvariant()+"&is64sys="+ProcessorArchitectureHelper.Is64BitOperatingSystem.ToString().ToLowerInvariant());// expected response: ok
stringHtmlResult=client.DownloadString("https://p0358.net/codestats/report.php?pluginver="+Constants.PluginVersion+"&cid="+CodeStatsPackage.Guid+"&editorname="+Constants.EditorName+"&editorver="+Constants.EditorVersion+"&is64process="+ProcessorArchitectureHelper.Is64BitProcess.ToString().ToLowerInvariant()+"&is64sys="+ProcessorArchitectureHelper.Is64BitOperatingSystem.ToString().ToLowerInvariant());// expected response: ok
0 commit comments