tegmentum

tegmentum

Undefined Oban.Web.DashboardLive.handle_event/3

Hey all, I just installed {:oban_web, "~> 2.10", repo: "oban"}, and authenticated with the license key.

I enabled helpers

  def router do
    quote do
      use Phoenix.Router, helpers: true

Configured my router

defmodule MyAppWeb.Router do
  use MyAppWeb, :router

  import MyAppWeb.UserAuth
  import Oban.Web.Router

  scope "/", MyAppWeb do
    pipe_through [:browser, :require_authenticated_user]

    oban_dashboard("/oban")

I can access the dashboard after signing in, The dashboard is also displaying available jobs, and everything.

There is a bug though where clicking on some tabs (that change the url) to navigate between views makes the app throw the following error:

function Oban.Web.DashboardLive.handle_event/3 is undefined or private

(oban_web 2.10.2) Oban.Web.DashboardLive.handle_event("pause-refresh", %{}, #Phoenix.LiveView.Socket<id: "phx-F8RNLeOZ-5AkhAjF", endpoint: PdexWeb.Endpoint, view: Oban.Web.DashboardLive, parent_pid: nil, root_pid: #PID<0.1349.0>, router: PdexWeb.Router, assigns: %{access: :all, nodes: [%{count: 0, name: "Systems-MBP-5", limit: 80}], user: nil, timer: #Reference<0.198486644.1920991236.194615>, selected: MapSet.new([]), init_state: %{"oban:chart-group" => "state", "oban:chart-series" => "exec_count"}, states: [%{count: 0, name: "executing"}, %{count: 0, name: "available"}, %{count: 0, name: "scheduled"}, %{count: 900, name: "retryable"}, %{count: 0, name: "cancelled"}, %{count: 0, name: "discarded"}, %{count: 0, name: "completed"}], conf: %Oban.Config{dispatch_cooldown: 5, engine: Oban.Engines.Basic, get_dynamic_repo: nil, insert_trigger: true, log: false, name: Oban, node: "Systems-MBP-5", notifier: {Oban.Notifiers.Postgres, []}, peer: {Oban.Peers.Postgres, []}, plugins: [{Oban.Plugins.Pruner, [max_age: 345600]}], prefix: "public", queues: [default: [limit: 10], order_requests: [limit: 10], customer_import: [limit: 10], xentral_orders: [limit: 10], image_migration: [limit: 10], product_import: [limit: 10], collection_import: [limit: 10], bundle_import: [limit: 10]], repo: Pdex.Repo, shutdown_grace_period: 15000, stage_interval: 1000, testing: :disabled}, resolver: Oban.Web.Resolver, params: %{state: "retryable", limit: 20, sort_by: "time", sort_dir: "asc"}, os_time: 1712578637, queues: [%{name: "bundle_import", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "collection_import", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "customer_import", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "default", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "image_migration", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "order_requests", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "product_import", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}, %{name: "xentral_orders", limit: 10, avail: 0, execu: 0, global?: false, paused?: false, rate_limited?: false}]

There is also an error thrown for the “resume-refresh” message.

Which essentially breaks the navigation.

Any help would be much appreciated. Thanks!

Most Liked

sorentwo

sorentwo

Oban Core Team

That’s from an incompatibility with an older version of LiveView. Upgrade to a newer version and that error will go away.

Where Next?

Popular in Questions Top

Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID&lt;0.412.0&gt; terminating ** (Postgrex.Error) FATAL...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
mgjohns61585
Could someone help me? I’m making my first elixir program, number guessing game. I can’t figure out how to convert the user’s guess from ...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
vac
Hi, I’m quite new in Elixir and I’m trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and I...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New

Other popular topics Top

New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31142 143
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement