From 0f22ff5f21e64f86f14305bc25a26a920ac7269a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?James=20Davis=20=E2=9B=BA=EF=B8=8F=F0=9F=8F=94?= Date: Fri, 9 Jul 2021 14:06:12 -0600 Subject: [PATCH 1/4] [Error Codes] Updated MessageTooLarge --- .../device/src/Common/Exceptions/MessageTooLargeException.cs | 3 +++ iothub/service/src/Common/Exceptions/ErrorCode.cs | 3 +++ .../src/Common/Exceptions/MessageTooLargeException.cs | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/iothub/device/src/Common/Exceptions/MessageTooLargeException.cs b/iothub/device/src/Common/Exceptions/MessageTooLargeException.cs index 2ee5d1a167..0f4e402ade 100644 --- a/iothub/device/src/Common/Exceptions/MessageTooLargeException.cs +++ b/iothub/device/src/Common/Exceptions/MessageTooLargeException.cs @@ -10,6 +10,9 @@ namespace Microsoft.Azure.Devices.Client.Exceptions /// /// The exception that is thrown when an attempt to send a message fails because the length of the message exceeds the maximum size allowed. /// + /// + /// When the message is too large for IoT Hub you will receive this exception. You should attempt to reduce your message size and send again. For more information on message sizes, see IoT Hub quotas and throttling | Other limits + /// [Serializable] public sealed class MessageTooLargeException : IotHubException { diff --git a/iothub/service/src/Common/Exceptions/ErrorCode.cs b/iothub/service/src/Common/Exceptions/ErrorCode.cs index d74ac44b11..db426c7de8 100644 --- a/iothub/service/src/Common/Exceptions/ErrorCode.cs +++ b/iothub/service/src/Common/Exceptions/ErrorCode.cs @@ -89,6 +89,9 @@ public enum ErrorCode DeviceMessageLockLost = 412002, // RequestEntityTooLarge - 413 + /// + /// When the message is too large for IoT Hub you will receive this error. You should attempt to reduce your message size and send again. For more information on message sizes, see IoT Hub quotas and throttling | Other limits + /// MessageTooLarge = 413001, TooManyDevices = 413002, diff --git a/iothub/service/src/Common/Exceptions/MessageTooLargeException.cs b/iothub/service/src/Common/Exceptions/MessageTooLargeException.cs index 9f61742049..e51d2e4b9b 100644 --- a/iothub/service/src/Common/Exceptions/MessageTooLargeException.cs +++ b/iothub/service/src/Common/Exceptions/MessageTooLargeException.cs @@ -7,8 +7,11 @@ namespace Microsoft.Azure.Devices.Common.Exceptions { /// - /// The exception that is thrown when a message is sent to IoT Hub that exceeds the maximum allowed bytes in size. + /// The exception that is thrown when an attempt to send a message fails because the length of the message exceeds the maximum size allowed. /// + /// + /// When the message is too large for IoT Hub you will receive this exception. You should attempt to reduce your message size and send again. For more information on message sizes, see IoT Hub quotas and throttling | Other limits + /// [Serializable] public sealed class MessageTooLargeException : IotHubException { From a4faca155bfd13a31e38c3dfbd06174b4c33c127 Mon Sep 17 00:00:00 2001 From: jamdavi <73593426+jamdavi@users.noreply.github.com> Date: Fri, 9 Jul 2021 14:37:15 -0600 Subject: [PATCH 2/4] Removed en-us where seen --- iothub/service/src/Common/Exceptions/ErrorCode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iothub/service/src/Common/Exceptions/ErrorCode.cs b/iothub/service/src/Common/Exceptions/ErrorCode.cs index db426c7de8..0a71d09da0 100644 --- a/iothub/service/src/Common/Exceptions/ErrorCode.cs +++ b/iothub/service/src/Common/Exceptions/ErrorCode.cs @@ -90,7 +90,7 @@ public enum ErrorCode // RequestEntityTooLarge - 413 /// - /// When the message is too large for IoT Hub you will receive this error. You should attempt to reduce your message size and send again. For more information on message sizes, see IoT Hub quotas and throttling | Other limits + /// When the message is too large for IoT Hub you will receive this error. You should attempt to reduce your message size and send again. For more information on message sizes, see IoT Hub quotas and throttling | Other limits /// MessageTooLarge = 413001, @@ -101,7 +101,7 @@ public enum ErrorCode /// /// IoT hub throttling limits have been exceeded for the requested operation. - /// For more information, + /// For more information, /// ThrottlingException = 429001, From 133e5b0cef5fd8d770d649496a4ea7c3e142a10e Mon Sep 17 00:00:00 2001 From: jamdavi <73593426+jamdavi@users.noreply.github.com> Date: Fri, 9 Jul 2021 14:41:03 -0600 Subject: [PATCH 3/4] Remove en-us --- iothub/device/src/Common/Exceptions/MessageTooLargeException.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iothub/device/src/Common/Exceptions/MessageTooLargeException.cs b/iothub/device/src/Common/Exceptions/MessageTooLargeException.cs index 0f4e402ade..964ae011c2 100644 --- a/iothub/device/src/Common/Exceptions/MessageTooLargeException.cs +++ b/iothub/device/src/Common/Exceptions/MessageTooLargeException.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.Devices.Client.Exceptions /// The exception that is thrown when an attempt to send a message fails because the length of the message exceeds the maximum size allowed. /// /// - /// When the message is too large for IoT Hub you will receive this exception. You should attempt to reduce your message size and send again. For more information on message sizes, see IoT Hub quotas and throttling | Other limits + /// When the message is too large for IoT Hub you will receive this exception. You should attempt to reduce your message size and send again. For more information on message sizes, see IoT Hub quotas and throttling | Other limits /// [Serializable] public sealed class MessageTooLargeException : IotHubException From 611f0770cb720d7c596c8afd203b7fad0219a000 Mon Sep 17 00:00:00 2001 From: jamdavi <73593426+jamdavi@users.noreply.github.com> Date: Fri, 9 Jul 2021 14:41:46 -0600 Subject: [PATCH 4/4] REmove en-us --- .../service/src/Common/Exceptions/MessageTooLargeException.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iothub/service/src/Common/Exceptions/MessageTooLargeException.cs b/iothub/service/src/Common/Exceptions/MessageTooLargeException.cs index e51d2e4b9b..6d3ebcdf42 100644 --- a/iothub/service/src/Common/Exceptions/MessageTooLargeException.cs +++ b/iothub/service/src/Common/Exceptions/MessageTooLargeException.cs @@ -10,7 +10,7 @@ namespace Microsoft.Azure.Devices.Common.Exceptions /// The exception that is thrown when an attempt to send a message fails because the length of the message exceeds the maximum size allowed. /// /// - /// When the message is too large for IoT Hub you will receive this exception. You should attempt to reduce your message size and send again. For more information on message sizes, see IoT Hub quotas and throttling | Other limits + /// When the message is too large for IoT Hub you will receive this exception. You should attempt to reduce your message size and send again. For more information on message sizes, see IoT Hub quotas and throttling | Other limits /// [Serializable] public sealed class MessageTooLargeException : IotHubException