PipedreamHQ / PipedreamHQ/pipedream
[BUG] PD CLI - `pd list` with a bad API key does not throw an error
- Dominant language
- JavaScript
- Stars
- 11.7k
- Forks
- 5.8k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 102
Description
**Describe the bug**
As a PD user, when I forget to add an API key or have a bad API key in my PD config, I expect an error to be thrown.
**To Reproduce**
Steps to reproduce the behavior:
1. Enter in a bad API key in your `~/.config/pipedream/config` file
2. Attempt to list your published actions with `pd list published`
3. See empty list
```bash
? Which resource would you like to list? published
ID Name Version Updated At Key
```
**Expected behavior**
I expect an unauthorized error to be thrown instead of being shown an empty list.

Contributor guide
Assessment
This issue has not been assessed yet.