-
Notifications
You must be signed in to change notification settings - Fork 6
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
RequesterInvokeUpdate.result is inconsistent #23
Comments
Hi @peterbrock, thanks for the report. We're looking into this. |
RequesterInvokeUpdate.result is a convenient way to convert the first row into Object structure Dslink built with new sdk like new java and ts/js sdk always send column structure in action response for now, in order to get consistent result, you can use response.rows[0] |
Thanks for getting back to me regarding this. I'm not 100% sure I understand the reasoning regarding why .result is inconsistent and can't be translated. If I've understood your comment correctly; it's an issue with the SDK that the DSLink is using not sending the columns? As for the workaround; we found that we had to do: |
are you using latest typescript sdk as responder or requester? if the responder is also typescript sdk then it's a bug , and we will try our best to fix it. |
Note: using the web.js version of the SDK, not the node.js version.
I've noticed that as a result of performing an
invoke
action; the returnedRequesterInvokeUpdate
has a getter method on,result()
. The returned value of this is inconsistent in terms of it's own properties.Sometimes you access the result using:
response.result.result
and other times itsresponse.result[0]
. From the source code, it looks to be because of here:Running the following for the first response returns
...and then for subsequent responses/updates to the invoke:
Is it possible to update the SDK so that
response.result
has a consistent property?The text was updated successfully, but these errors were encountered: