-
Notifications
You must be signed in to change notification settings - Fork 1
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
Release 3356 | Raise error when error 413 is likely to happen #7
Release 3356 | Raise error when error 413 is likely to happen #7
Conversation
end | ||
end | ||
|
||
MSTEAMS_MESSAGE_SIZE_LIMIT = 21_000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a reference for that limit? It would be great to add that reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a limit stated here: https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook
But it did not seemed to match the actual results of running (I tried multiple times)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks for tackling this older issue.
Co-authored-by: Nej <[email protected]>
…ile/msteams_hermes into release-3356/handle-413-response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noice!
Co-authored-by: Nej <[email protected]>
Co-authored-by: Nej <[email protected]>
Main PR outcome
It raise an error when the currently known (it does not really peek/parse the response body to decide if an error happened) limit of the messages is reached
Side refactorings
gemspec
/Gemfile
file3.1
+webmock
gem and add tests for the.deliver
method