# \[Solved\] jwksError: Not Found thrown during GET request with auth bearer token to protected api

**URL:** <https://community.auth0.com/t/solved-jwkserror-not-found-thrown-during-get-request-with-auth-bearer-token-to-protected-api/54734>\
**Category:** Get Help\
**Tags:** jwt, api, auth0\
**Created:** [December 13, 2020, 1:13am UTC](https://community.auth0.com/t/solved-jwkserror-not-found-thrown-during-get-request-with-auth-bearer-token-to-protected-api/54734 "2020-12-13T01:13:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rexrover2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rexrover2/32/26226_2.png) [@Rexrover2](https://community.auth0.com/u/Rexrover2)\
**Post date:** [December 13, 2020, 1:13am UTC](https://community.auth0.com/t/solved-jwkserror-not-found-thrown-during-get-request-with-auth-bearer-token-to-protected-api/54734/1 "2020-12-13T01:13:32Z")

</div>

An error - “jwksError: Not Found” is thrown when I make a get request with the correct bearer token in the request header to my protected API. I’ve followed the start up guide to create the checkjwt helper function that I pass to all my routes to protect them. I need help clarifying what this error actually means thanks!

Defining the checkJWT helper function with help from quickstart guide.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/a/6ad734cb581a89d41e085180ca9d28b7f0a7c871.png)

Protecting API with checkJWT to ensure auth token is correct and passed in request header.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/d/8/d869de428110b8b51c71a16fb0dcba0dc0b3dd1c.png)

GET request sent with postman and corresponding error thrown by jwks-rsa module.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/e/4/e414980cfc7f46849380ce24998cb0e421a6e3c9.png)

---

<div class="post-metadata">

**Author:** ![Rexrover2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rexrover2/32/26226_2.png) [@Rexrover2](https://community.auth0.com/u/Rexrover2)\
**Post date:** [December 14, 2020, 12:02am UTC](https://community.auth0.com/t/solved-jwkserror-not-found-thrown-during-get-request-with-auth-bearer-token-to-protected-api/54734/2 "2020-12-14T00:02:50Z")

</div>

I’ve fixed it! The error was way too ambiguous but after desperation set in, I checked my configs again and I found that I included a “/” at the end of my auth0apiIdentifier, this allowed a “//” in the jwksUri which caused the issue. Solving this typo was my fix.

Check your code guys! Peace!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 14, 2020, 10:53am UTC](https://community.auth0.com/t/solved-jwkserror-not-found-thrown-during-get-request-with-auth-bearer-token-to-protected-api/54734/3 "2020-12-14T10:53:01Z")

</div>

Glad you have figured it out and thanks for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 29, 2020, 10:53am UTC](https://community.auth0.com/t/solved-jwkserror-not-found-thrown-during-get-request-with-auth-bearer-token-to-protected-api/54734/4 "2020-12-29T10:53:04Z")

</div>

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