# Sensuctl secret list gives 401 Unauthorized

**URL:** <https://discourse.sensu.io/t/sensuctl-secret-list-gives-401-unauthorized/3161>\
**Category:** Sensu Go\
**Created:** [October 16, 2023, 11:29am UTC](https://discourse.sensu.io/t/sensuctl-secret-list-gives-401-unauthorized/3161 "2023-10-16T11:29:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kjeserud](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@Kjeserud](https://discourse.sensu.io/u/Kjeserud)\
**Post date:** [October 16, 2023, 11:29am UTC](https://discourse.sensu.io/t/sensuctl-secret-list-gives-401-unauthorized/3161/1 "2023-10-16T11:29:24Z")

</div>

## Description of your problem

Running `sensuctl secret list` gives the output `Error: failed to request new refresh token; client returned 'The server returned the error: 401 Unauthorized'`

Running `curl -X GET https://127.0.0.1:8080/auth -u admin:password` gives the expected access\_token.

My main issue is with getting Opsgenie integration to work ([Having trouble with OpsGenie intergration](https://discourse.sensu.io/t/having-trouble-with-opsgenie-intergration/3133/1)) This is an issue I experienced while trying to debug the original issue.

## Environmental information

```auto
sensuctl version 6.10.0+ee

```

```auto
Sensu Go Version: 6.10.0-7172

```

### Operating system information

```auto
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy

```

### Package versions

- Sensu Go: 6.10.0-7172
- Etcd: 3.3.25+dfsg-7
- PostgreSQL: N/A

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/sensu/original/1X/ad88ecc0d60777fbbb8dad05fe976fca2a4d87b2.jpeg) [@system](https://discourse.sensu.io/u/system)\
**Post date:** [November 15, 2023, 11:30am UTC](https://discourse.sensu.io/t/sensuctl-secret-list-gives-401-unauthorized/3161/2 "2023-11-15T11:30:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
