Closed
Description
Hi! I'm seeing this in the logs and I'm not sure why that's happening.
I'm using these versions:
elixir 1.14.5
erlang 25.3.2.10
phoenix 1.7.12
oban 2.18.2
oban_pro 1.4.11
oban_web 2.10.5
error_tracker 0.2.2
Development logs
[error] Handler ErrorTracker.Integrations.Oban has failed and has been detached. Class=:error
Reason={:badkey, :file, nil}
Stacktrace=[
{ErrorTracker.Error, :new, 3,
[file: 'lib/error_tracker/schemas/error.ex', line: 32]},
{ErrorTracker, :report, 3, [file: 'lib/error_tracker.ex', line: 106]},
{:telemetry, :"-execute/3-fun-0-", 4,
[
file: '/Users/jaime/code/myapp/deps/telemetry/src/telemetry.erl',
line: 160
]},
{:lists, :foreach_1, 2, [file: 'lists.erl', line: 1442]},
{Oban.Queue.Executor, :emit_event, 1,
[file: 'lib/oban/queue/executor.ex', line: 284]},
{Oban.Queue.Executor, :"-call/1-fun-0-", 1,
[file: 'lib/oban/queue/executor.ex', line: 84]},
{Oban.Backoff, :with_retry, 3, [file: 'lib/oban/backoff.ex', line: 108]},
{Task.Supervised, :invoke_mfa, 2, [file: 'lib/task/supervised.ex', line: 89]},
{Task.Supervised, :reply, 4, [file: 'lib/task/supervised.ex', line: 34]},
{:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 240]}
]
Staging server logs
2024-08-23T07:46:01.833662+00:00 app[web.1]: 07:46:01.833 [error] Handler ErrorTracker.Integrations.Oban has failed and has been detached. Class=:error
2024-08-23T07:46:01.833679+00:00 app[web.1]: Reason={:badkey, :file, nil}
2024-08-23T07:46:01.833680+00:00 app[web.1]: Stacktrace=[
2024-08-23T07:46:01.833680+00:00 app[web.1]: {ErrorTracker.Error, :new, 3,
2024-08-23T07:46:01.833681+00:00 app[web.1]: [file: 'lib/error_tracker/schemas/error.ex', line: 32]},
2024-08-23T07:46:01.833682+00:00 app[web.1]: {ErrorTracker, :report, 3, [file: 'lib/error_tracker.ex', line: 106]},
2024-08-23T07:46:01.833683+00:00 app[web.1]: {:telemetry, :"-execute/3-fun-0-", 4,
2024-08-23T07:46:01.833683+00:00 app[web.1]: [file: '/tmp/build_477b1e97/deps/telemetry/src/telemetry.erl', line: 160]},
2024-08-23T07:46:01.833684+00:00 app[web.1]: {:lists, :foreach_1, 2, [file: 'lists.erl', line: 1442]},
2024-08-23T07:46:01.833684+00:00 app[web.1]: {Oban.Queue.Executor, :emit_event, 1,
2024-08-23T07:46:01.833684+00:00 app[web.1]: [file: 'lib/oban/queue/executor.ex', line: 284]},
2024-08-23T07:46:01.833685+00:00 app[web.1]: {Oban.Queue.Executor, :"-call/1-fun-0-", 1,
2024-08-23T07:46:01.833685+00:00 app[web.1]: [file: 'lib/oban/queue/executor.ex', line: 84]},
2024-08-23T07:46:01.833685+00:00 app[web.1]: {Oban.Backoff, :with_retry, 3, [file: 'lib/oban/backoff.ex', line: 108]},
2024-08-23T07:46:01.833686+00:00 app[web.1]: {Task.Supervised, :invoke_mfa, 2, [file: 'lib/task/supervised.ex', line: 89]}
2024-08-23T07:46:01.833686+00:00 app[web.1]: ]