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

Release 3356 | Raise error when error 413 is likely to happen #7

Merged
merged 15 commits into from
Jun 18, 2024

Conversation

mooikos
Copy link
Collaborator

@mooikos mooikos commented May 22, 2024

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

  • adapt CI ruby versions
  • Refactor gemspec / Gemfile file
  • Adapt to ruby 3.1+
  • Add webmock gem and add tests for the .deliver method
  • Add debugging gem for testing

end
end

MSTEAMS_MESSAGE_SIZE_LIMIT = 21_000
Copy link
Collaborator

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.

Copy link
Collaborator Author

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)

Copy link
Collaborator

@huNt-FMJ huNt-FMJ left a 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.

@mooikos mooikos requested a review from huNt-FMJ May 28, 2024 09:18
Copy link
Collaborator

@huNt-FMJ huNt-FMJ left a comment

Choose a reason for hiding this comment

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

Noice!

@mooikos mooikos merged commit fc41f27 into xing:main Jun 18, 2024
3 checks passed
@mooikos mooikos deleted the release-3356/handle-413-response branch June 18, 2024 09:51
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.

4 participants