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

KeyError: key :id not found in: nil #2590

Open
sentry-io bot opened this issue Oct 17, 2024 · 0 comments
Open

KeyError: key :id not found in: nil #2590

sentry-io bot opened this issue Oct 17, 2024 · 0 comments
Labels
bug Newly identified bug QA Related Issues identified during QA and needs to be fixed before release

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 17, 2024

This issue was triggered when Lightning tried to fetch a workflow that was not saved. Here is how to replicate the issue:

  • Create a new workflow
  • Add a new step (don't save yet)
  • Try to create a new credential -> click on the new credential link, select a credential, and close the modal.
  • This will refresh the page and when Lightning is trying to fetch the workflow this error is triggered.

We should stop the page from refreshing when a user closes the credential configuration modal. We have done this previously for the Select a Credential modal and we also need to make sure that when a user closes the modal, it is cleared from cache.

Currently closing the credential configuration modal with the (x) icon will dismiss the modal but when I click on add credential, it automatically loads the modal.

We don't save workflows automatically unless a user clicks on save or creates a work order.

Sentry Issue: LIGHTNING-FD

KeyError: key :id not found in: nil

If you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map
  File "lib/lightning_web/live/workflow_live/edit.ex", line 1132, in LightningWeb.WorkflowLive.Edit.track_user_presence/1
  File "lib/lightning_web/live/workflow_live/edit.ex", line 1063, in LightningWeb.WorkflowLive.Edit.handle_params/3
  File "lib/phoenix_live_view/utils.ex", line 462, in anonymous fn/5 in Phoenix.LiveView.Utils.call_handle_params!/5
  File "/app/deps/telemetry/src/telemetry.erl", line 324, in :telemetry.span/3
  File "lib/phoenix_live_view/channel.ex", line 567, in Phoenix.LiveView.Channel.maybe_call_mount_handle_params/4
...
(3 additional frame(s) were not displayed)
@sentry-io sentry-io bot added bug Newly identified bug QA Related Issues identified during QA and needs to be fixed before release labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Newly identified bug QA Related Issues identified during QA and needs to be fixed before release
Projects
Status: New Issues
Development

No branches or pull requests

0 participants