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

fix: in case of error, propagate back error code of edgeHub #4929

Merged
merged 5 commits into from
Jun 3, 2021

Conversation

vipeller
Copy link
Contributor

instead of using 0 (which is a result of uninitialized status property)

@@ -306,13 +307,33 @@ void HandleDirectMethodCall(string id, string method, string rid, byte[] payload
{
// TODO acquire the response timeout from the message
var callingTask = this.edgeHub.InvokeMethodAsync(rid, new DirectMethodRequest(id, method, payload, TimeSpan.FromMinutes(1)));
callingTask.ContinueWith(
async response =>
_ = callingTask.ContinueWith(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any tests we need to update?

nyanzebra
nyanzebra previously approved these changes Jun 3, 2021
Copy link
Contributor

@nyanzebra nyanzebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will approve again after tests added :)

@kodiakhq kodiakhq bot merged commit 8250d87 into Azure:master Jun 3, 2021
and-rewsmith pushed a commit to and-rewsmith/iotedge that referenced this pull request Jun 22, 2021
instead of using 0 (which is a result of uninitialized status property)
and-rewsmith added a commit that referenced this pull request Jun 22, 2021
…5140)

instead of using 0 (which is a result of uninitialized status property)

Co-authored-by: vipeller <51135538+vipeller@users.noreply.github.com>
ggjjj pushed a commit to ggjjj/iotedge that referenced this pull request Jul 22, 2021
instead of using 0 (which is a result of uninitialized status property)
damonbarry pushed a commit to damonbarry/iotedge that referenced this pull request Apr 15, 2022
instead of using 0 (which is a result of uninitialized status property)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants