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(azure-iot-device): invalid body received on a device method in… #856

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

anthonyvercolano
Copy link
Contributor

…voke throws

If somehow an invalid body is pushed through on a device method invocation, the device client side
will throw when it trys to json parse that body.

…voke throws

If somehow an invalid body is pushed through on a device method invocation, the device client side
will throw when it trys to json parse that body.
} catch (err) {
response.send(400, 'Invalid request format: ' + err.message, (err) => {
if (err) {
debug('Error sending invalid request response back to application');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nitpick: Can you change to something like 'Error sending invalid request response'

Copy link
Contributor

@YoDaMa YoDaMa left a comment

Choose a reason for hiding this comment

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

lgtm

@anthonyvercolano anthonyvercolano merged commit 8f78788 into Azure:master Jul 22, 2020
@anthonyvercolano anthonyvercolano deleted the method-fault branch July 22, 2020 13:49
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

Successfully merging this pull request may close these issues.

None yet

3 participants