PipedreamHQ / PipedreamHQ/pipedream

[BUG] PD CLI - `pd list` with a bad API key does not throw an error

Open
#3,414 0 comments 0 reactions 0 assignees View on GitHub
bug pd-cli tracked internally triaged
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.

![CleanShot 2022-07-12 at 10 45 48](https://user-images.githubusercontent.com/2694734/178518201-dce43dee-90bc-4c49-93f3-53c98398930f.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.