OpenFn / OpenFn/lightning

Collections: error in put_all

Open
#2,680 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Sentry Issue: LIGHTNING-P1

FunctionClauseError: no function clause matching in anonymous fn/2 in Lightning.Collections.put_all/2
  File "lib/lightning/collections.ex", line 167, in anonymous fn/2 in Lightning.Collections.put_all/2
  File "lib/enum.ex", line 4798, in Enum.with_index_list/3
  File "lib/lightning/collections.ex", line 167, in Lightning.Collections.put_all/2
  File "lib/lightning_web/controllers/collections_controller.ex", line 51, in LightningWeb.CollectionsController.put_all/2
  File "lib/lightning_web/controllers/collections_controller.ex", line 1, in LightningWeb.CollectionsController.action/2
...
(3 additional frame(s) were not displayed)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading lib/lightning/collections.ex at line 167, where Lightning.Collections.put_all/2 raises, then trace its call from lib/lightning_web/controllers/collections_controller.ex line 51. Use the linked Sentry report to identify the input that triggers the FunctionClauseError and confirm that put_all/2 no longer raises for that case.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.