Skip to content

Handle nil response #68

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

Closed
anton-putau opened this issue Oct 24, 2016 · 1 comment
Closed

Handle nil response #68

anton-putau opened this issue Oct 24, 2016 · 1 comment

Comments

@anton-putau
Copy link
Contributor

anton-putau commented Oct 24, 2016

I am trying to get response from lua function and got exception with nil value (lua function result):

var data = (await this.box.Call<TInput, TOutput>("FunctionName", Tuple.Create(.....))).Data;
Exception:

System.ArgumentException : Invalid array length: 3 is expected, but got 1. at Tarantool.Client.LogicalConnection.<SendRequestImpl>d__112.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Tarantool.Client.LogicalConnection.<SendRequest>d__72.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Tarantool.Client.Box.<Call>d__82.MoveNext()

Expected behavior Data = empty array

@aensidhe
Copy link
Member

Won't fix. Nils in lua are broken.

msgpack.NULL

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

No branches or pull requests

2 participants