New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to complete network request to host "{0}". error , but no args [DNET904] #831
Comments
Modified by: EzberYazan (febitbilisim)description: Unable to complete network request to host "{0}". if (args == null || args.Count == 0) { args.Add("no-arg-defined"); args.Add("no-arg-defined"); args.Add("no-arg-defined"); } private static void AppendMessage(StringBuilder builder, string message, List<string> args) { => ERR: 335544721 : Unable to complete network request to host "{0}". but no arg on : private static void AppendMessage(StringBuilder builder, string message, List<string> args) { if (args == null || args.Count == 0) { args.Add("no-arg-defined"); args.Add("no-arg-defined"); args.Add("no-arg-defined"); } private static void AppendMessage(StringBuilder builder, string message, List<string> args) { |
Commented by: @cincuranet The missing args is probably because the exception was thrown from local code, not from server. Blindly adding some dummy arguments isn't good design decision, IMO. It would rather make sense to find all occurrences and provide the arguments at the place where the exception is thrown. |
Commented by: EzberYazan (febitbilisim) Dear Jiri; on source codes; ERR: 335544721 : Unable to complete network request to host "{0}". "no-arg-defined" is my temp solution br |
Commented by: @cincuranet Yeah, temp solution is not a good solution. |
Looking at all the lines with |
Submitted by: EzberYazan (febitbilisim)
ERR: 335544721 : Unable to complete network request to host "{0}".
but no arg on : private static void AppendMessage(StringBuilder builder, string message, List<string> args) {
i solved pratically adding 3 arg for general purposes;
if (args == null || args.Count == 0) { args.Add("no-arg-defined"); args.Add("no-arg-defined"); args.Add("no-arg-defined"); }
private static void AppendMessage(StringBuilder builder, string message, List<string> args) {
if (builder.Length > 0) {
builder.Append(Environment.NewLine);
}
if (args == null || args.Count == 0) { args.Add("no-arg-defined"); args.Add("no-arg-defined"); args.Add("no-arg-defined"); }
builder.AppendFormat(CultureInfo.CurrentCulture, message, args.ToArray());
}
The text was updated successfully, but these errors were encountered: