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
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.
1
Popular in Questions
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
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
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
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
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
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
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
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
Hi!
In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir?
Searched the docs for ip address and the web, no good results.
Thanks!
New
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
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I’m writing a test for one of the...
New
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
Hello, how can I check the Phoenix version ?
Thanks !
New
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
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
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
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
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...
New
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
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
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








