Skip to content

Refactor exception handling for response content type#273

Merged
alex-leb merged 1 commit into
mailjet:masterfrom
ZushiH:patch-1
Nov 27, 2025
Merged

Refactor exception handling for response content type#273
alex-leb merged 1 commit into
mailjet:masterfrom
ZushiH:patch-1

Conversation

@ZushiH

@ZushiH ZushiH commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

NoMethodError

undefined method '[]' for nil (NoMethodError)

      return e.response_body if e.response_headers[:content_type].include?("text/plain")

Errno::ECONNRESET

Connection reset by peer - SSL_connect (Errno::ECONNRESET)

@alex-leb alex-leb self-assigned this Nov 27, 2025
@alex-leb alex-leb merged commit 6d03dbe into mailjet:master Nov 27, 2025
5 checks passed
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.

2 participants