OpenFn / OpenFn/kit

Worker: better error messages on credentials

Open
#692 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

Description

When the worker fails to load a credential, it'll just log a generic error message.

We need to ensure that if Lightning returns an error on the credential, that the error makes it back to the run logs.

As part of this issue, I also want to make sure we've got good unit and integration tests around this area (at a quick look it seems not too bad)

See https://github.com/OpenFn/lightning/issues/1842

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 at the worker's credential-loading entry point and inspect the existing unit and integration tests around credential failures. Reproduce a Lightning credential error and trace how it reaches the run logs; done means the specific error is preserved there and the relevant tests cover the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.