-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
Description
Erlang error: :no_translation:
- 1st argument: device failed to transcode string from unicode to latin1
Erlang 26.0.2
Elixir 1.15.7
HB 0.21.0
Honeybadger.context(%{send_mail: content})
IO.inspect Honeybadger.context()
^ just before error.
Context from HB website:
{
"error_logger" : {
"tag" : "error",
"report_cb" : "&:gen_server.format_log/1"
},
"time" : 1701642632565138,
"state" : "%Beanstix.Connection.State{host: ~c\"beanstalkd\", port: 11300, conn: #Port<0.53>, from: nil, connect_timeout: 5000, recv_timeout: :infinity, reconnect: true, backoff: nil, backoff_max: 30000}",
"gl" : "#PID<0.1546.0>",
"domain" : ["otp"],
"report_cb" : "&:gen_server.format_log/2",
"mfa" : [
"gen_server",
"error_info",
8
],
"last_message" : "{:EXIT, #PID<0.2306.0>, {:no_translation, [{:io, :put_chars, [#PID<0.2312.0>, <<80, 75, 3, 4, 20, 0, 6, 0, 8, 0, 0, 0, 33, 0, 155, 200, 17, 168, 131, 1, 0, 0, 37, 7, 0, 0, 19, 0, 8, 2, 91, 67, 111, 110, 116, 101, 110, 116, 95, ...>>], [file: ~c\"io.erl\", line: 99, error_info: %{cause: {:device, {:no_translation, :unicode, :latin1}}, module: :erl_stdlib_errors}]}, {Sct.Worker.SendMail, :\"-add_attachments/2-fun-0-\", 2, [file: ~c\"lib/processors/workers/send_mail.ex\", line: 94]}, {Enum, :\"-reduce/3-lists^foldl/2-0-\", 3, [file: ~c\"lib/enum.ex\", line: 2510]}, {Sct.Worker.SendMail, :perform, 1, [file: ~c\"lib/processors/workers/send_mail.ex\", line: 44]}, {Sct.Backgrounder, :while, 1, [file: ~c\"lib/processors/backgrounder.ex\", line: 78]}, {:gen_server, :try_handle_info, 3, [file: ~c\"gen_server.erl\", line: 1077]}, {:gen_server, :handle_msg, 6, [file: ~c\"gen_server.erl\", line: 1165]}, {:proc_lib, :init_p_do_apply, 3, [file: ~c\"proc_lib.erl\", line: 241]}]}}",
"erl_level" : "error"
}
Note: no "send_mail" content.
Seems like I should be seeing the context???? What am I doing wrong please?
subzero10