# Invalid bearer token

**URL:** <https://community.dynatrace.com/t/invalid-bearer-token/42908>\
**Category:** Troubleshooting\
**Tags:** kubernetes\
**Created:** [December 5, 2023, 7:30pm UTC](https://community.dynatrace.com/t/invalid-bearer-token/42908 "2023-12-05T19:30:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darynakovyrina](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/darynakovyrina/32/30846_2.png) [@darynakovyrina](https://community.dynatrace.com/u/darynakovyrina)\
**Post date:** [December 5, 2023, 7:30pm UTC](https://community.dynatrace.com/t/invalid-bearer-token/42908/1 "2023-12-05T19:30:00Z")

</div>

The bearer token is invalid and the request has been rejected by the Kubernetes API. Verify the bearer token. Make sure it doesn’t contain any whitespaces. If you’re connecting to a Kubernetes cluster API via a centralized external role-based access control (RBAC), consult the documentation of the Kubernetes cluster manager. For Rancher, see the guidelines on the official Rancher website.
