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

Bug: Cannot show devices without firmware metadata #1748

Open
elinol opened this issue Jan 10, 2025 · 0 comments
Open

Bug: Cannot show devices without firmware metadata #1748

elinol opened this issue Jan 10, 2025 · 0 comments

Comments

@elinol
Copy link
Contributor

elinol commented Jan 10, 2025

When trying to open a device from devices list by clicking on it I got this:

    ** (BadMapError) expected a map, got: nil
        (elixir 1.18.0) lib/map.ex:535: Map.get(nil, :platform, nil)
        (nerves_hub 2.0.0+42320dc7) lib/nerves_hub/deployments.ex:460: NervesHub.Deployments.eligible_deployments/1
        (nerves_hub 2.0.0+42320dc7) lib/nerves_hub_web/live/devices/show.ex:60: NervesHubWeb.Live.Devices.Show.mount/3
        (phoenix_live_view 0.20.17) lib/phoenix_live_view/utils.ex:343: anonymous fn/6 in Phoenix.LiveView.Utils.maybe_call_live_view_mount!/5
        (telemetry 1.3.0) /Users/elinol/WORK/smartrent/nerves_hub_web/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3
        (phoenix_live_view 0.20.17) lib/phoenix_live_view/channel.ex:1177: Phoenix.LiveView.Channel.verified_mount/8
        (phoenix_live_view 0.20.17) lib/phoenix_live_view/channel.ex:84: Phoenix.LiveView.Channel.handle_info/2
        (stdlib 6.1.2) gen_server.erl:2345: :gen_server.try_handle_info/3
        (stdlib 6.1.2) gen_server.erl:2433: :gen_server.handle_msg/6
        (stdlib 6.1.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3

This happens to devices without firmware metadata (like those added via the UI), when trying to find eligible deployments for that device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant