# Showing error for jwt token

**URL:** <https://community.auth0.com/t/showing-error-for-jwt-token/113157>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [August 8, 2023, 2:32pm UTC](https://community.auth0.com/t/showing-error-for-jwt-token/113157 "2023-08-08T14:32:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepamthegreat2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/deepamthegreat2/32/49709_2.png) [@deepamthegreat2](https://community.auth0.com/u/deepamthegreat2)\
**Post date:** [August 8, 2023, 2:32pm UTC](https://community.auth0.com/t/showing-error-for-jwt-token/113157/1 "2023-08-08T14:32:32Z")

</div>

Uncaught (in promise) Error: Service not found: [http://localhost:8000](http://localhost:8000)  
at d.fromPayload (auth0-spa-js.production.esm.js:1:7071)  
at r3 (auth0-spa-js.production.esm.js:1:36391)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 8, 2023, 5:12pm UTC](https://community.auth0.com/t/showing-error-for-jwt-token/113157/3 "2023-08-08T17:12:22Z")

</div>

Hi @deepamthegreat2,

Welcome to the Auth0 Community!

It looks like you are making a login request with the `"audience": "http://localhost:8000"`, but there are no API identifiers defined with that value on your tenant.

I was also able to confirm this when checking your logs and can see that in your request you specified the `"audience": "http://localhost:8000"`.

Given that, you will need to [register your API](https://auth0.com/docs/get-started/auth0-overview/set-up-apis) and specify that audience identifier in your login request to get a JWT access token.

Here is a useful resource to help you on your way:

> **[Get Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/get-access-tokens)**
>
> Learn how to request Access Tokens using the Authorize endpoint when authenticating users and include the target audience and scope of access requested by the app and granted by the user.

Please let us know how this goes for you.

Thanks,  
Rueben

---

<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:** [August 22, 2023, 5:12pm UTC](https://community.auth0.com/t/showing-error-for-jwt-token/113157/4 "2023-08-22T17:12:47Z")

</div>

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