You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As the title says, sometimes ftp:recv_bin/2 returns ok for me instead of {ok, Content}
To Reproduce
This is how I connect to the ftp server and send the commands. I'm using elixir, because I'm not used to programming in erlang, sorry for the inconvenience.
# In the module I use for managing FTP connectionsdefconnect()doconfig=Application.get_env(:my_app,__MODULE__)host=config|>Keyword.get(:host)|>to_charlist()user=config|>Keyword.get(:user)|>to_charlist()password=config|>Keyword.get(:password)|>to_charlist()port=config|>Keyword.get(:port)with{:ok,pid}<-:ftp.open(host,port: port),:ok<-:ftp.user(pid,user,password)do{:ok,pid}endend
Looks like a bug, we will have a look after OTP-27 release. As it is a bug we can of course schedule a fix to eventually also be released in 26 and maybe 25 piggybacked on some other fixes.
Describe the bug
As the title says, sometimes
ftp:recv_bin/2
returnsok
for me instead of{ok, Content}
To Reproduce
This is how I connect to the ftp server and send the commands. I'm using elixir, because I'm not used to programming in erlang, sorry for the inconvenience.
Expected behavior
ftp:recv_bin/2
should always return a status tuple like{ok, Content}
or{:error, Reason}
as documentedAffected versions
Erlang/OTP 26.2.3 with Elixir 1.16.2
Prompt from starting IEx
The text was updated successfully, but these errors were encountered: