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

Context not coming through for errors #531

Open
tjchambers opened this issue Dec 3, 2023 · 1 comment
Open

Context not coming through for errors #531

tjchambers opened this issue Dec 3, 2023 · 1 comment
Labels

Comments

@tjchambers
Copy link

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?

@tjchambers tjchambers changed the title Context is coming through for errors Context not coming through for errors Dec 3, 2023
@joshuap
Copy link
Member

joshuap commented Jan 3, 2024

@tjchambers I'm not sure, it might depend on where the error is happening. Is this something you can isolate and reproduce for us here?

@joshuap joshuap added the bug label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants