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

Argument error with elixir 1.11.4 #92

Open
lanarchyste opened this issue Mar 18, 2021 · 2 comments
Open

Argument error with elixir 1.11.4 #92

lanarchyste opened this issue Mar 18, 2021 · 2 comments

Comments

@lanarchyste
Copy link

I updated elixir to version 1.11.4, and since then I have the following error:

** (ArgumentError) argument error
:erlang.split_binary('250-PR0P264CA0221.outlook.office365.com Hello [37.157.224.248]\r\n', 3)
(gen_smtp 0.14.0) /app/deps/gen_smtp/src/binstr.erl:114: :binstr.substr/3
(gen_smtp 0.14.0) /app/deps/gen_smtp/src/gen_smtp_client.erl:623: :gen_smtp_client.read_possible_multiline_reply/1
(gen_smtp 0.14.0) /app/deps/gen_smtp/src/gen_smtp_client.erl:488: :gen_smtp_client.try_EHLO/2
(gen_smtp 0.14.0) /app/deps/gen_smtp/src/gen_smtp_client.erl:549: :gen_smtp_client.do_STARTTLS/2
(gen_smtp 0.14.0) /app/deps/gen_smtp/src/gen_smtp_client.erl:520: :gen_smtp_client.try_STARTTLS/3
(gen_smtp 0.14.0) /app/deps/gen_smtp/src/gen_smtp_client.erl:259: :gen_smtp_client.open_smtp_session/2
(gen_smtp 0.14.0) /app/deps/gen_smtp/src/gen_smtp_client.erl:200: :gen_smtp_client.try_smtp_sessions/3
(gen_smtp 0.14.0) /app/deps/gen_smtp/src/gen_smtp_client.erl:189: :gen_smtp_client.send_it/2
(mailman 0.4.2) lib/mailman/external_smtp_adapter.ex:17: Mailman.ExternalSmtpAdapter.deliver/3

@skosch
Copy link
Collaborator

skosch commented Mar 18, 2021

Hey, thanks for reporting this. Looks like you're running into this issue, which in turn is due to a breaking change in OTP that's being discussed here.

I've subscribed to those threads; once they agree on a solution they'll hopefully release new versions of both OTP and gen_smtp, which should solve your problem as well. Until then, the easiest thing to do may be either to use gen_smtp's temporary patch or to downgrade your Elixir installation – sorry!

@lanarchyste
Copy link
Author

Hi,

Thank you for your quick reply !

For the moment, I have downgraded the version of elixir because I don't have the need to use the latest version.

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

No branches or pull requests

2 participants