Skip to content
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

Closed
firebird-automations opened this issue Oct 13, 2019 · 5 comments

Comments

@firebird-automations
Copy link

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());
}

@firebird-automations
Copy link
Author

Modified by: EzberYazan (febitbilisim)

description: 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());
}

=>

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());
}

@firebird-automations
Copy link
Author

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.

@firebird-automations
Copy link
Author

Commented by: EzberYazan (febitbilisim)

Dear Jiri;

on source codes; ERR: 335544721 : Unable to complete network request to host "{0}".
{0} is not filling on source code. so throwing argument missing exception.
and for your analiyz

"no-arg-defined" is my temp solution

br

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Yeah, temp solution is not a good solution.

@cincuranet
Copy link
Member

Looking at all the lines with isc_network_error in the code, at the moment all contain proper data source argument. I probably cleaned it up during some refactoring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants