# ESI: "error": "Character ID mismatch between request path and auth token"

**URL:** <https://forums.eveonline.com/t/esi-error-character-id-mismatch-between-request-path-and-auth-token/293063>\
**Category:** Third Party Developers\
**Tags:** esi\
**Created:** [February 1, 2021, 11:29am UTC](https://forums.eveonline.com/t/esi-error-character-id-mismatch-between-request-path-and-auth-token/293063 "2021-02-01T11:29:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilaim](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/nilaim/32/254156_2.png) [@Nilaim](https://forums.eveonline.com/u/Nilaim)\
**Post date:** [February 1, 2021, 11:29am UTC](https://forums.eveonline.com/t/esi-error-character-id-mismatch-between-request-path-and-auth-token/293063/1 "2021-02-01T11:29:01Z")

</div>

For some reason I am refused access to endpoints on the ESI [https://esi.evetech.net](https://esi.evetech.net) portal with the error code in the title. I am using this access from Excel Power Query, this same query used to work a year ago, I have only renewed the OAUTH2 keys.

The character id is from the account I used in the application, and the app has the permissions for the paths I am trying to access, but there seems to be some kind of mismatch with the token…  
Any idea?

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [February 1, 2021, 3:16pm UTC](https://forums.eveonline.com/t/esi-error-character-id-mismatch-between-request-path-and-auth-token/293063/2 "2021-02-01T15:16:16Z")

</div>

This happens when you are requesting a resource for a character, e.g. `/v5/characters/123/assets/`, while using a token that belongs to character `456` or vice versa.

I’d ensure your OAuth2 flow is still up to date based on [SSO Authorization Flow | esi-docs](https://docs.esi.evetech.net/docs/sso/sso_authorization_flow.html). Just going thru the flow for that character again should be sufficient.

---

<div class="post-metadata">

**Author:** ![Alex\_Hummel](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/alex_hummel/32/261899_2.png) [@Alex\_Hummel](https://forums.eveonline.com/u/Alex_Hummel)\
**Post date:** [March 15, 2021, 11:34pm UTC](https://forums.eveonline.com/t/esi-error-character-id-mismatch-between-request-path-and-auth-token/293063/3 "2021-03-15T23:34:58Z")

</div>

Hey all! I’m just getting started with ESI. I am getting this same error when just using the “Try It Out” options on the Swagger Interface itself. Is that just a bug that will be solved when I handle the tokens in my own app?

FYI: I’m trying to capture all of the responses to build a data structure before I start actually pulling in data to the app.

Thanks!

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [March 16, 2021, 12:03am UTC](https://forums.eveonline.com/t/esi-error-character-id-mismatch-between-request-path-and-auth-token/293063/4 "2021-03-16T00:03:31Z")

</div>

> [@Alex\_Hummel](#):
>
> Hey all! I’m just getting started with ESI. I am getting this same error when just using the “Try It Out” options on the Swagger Interface itself.

Does the `character_id` you’re putting into the form match the character you authenticated with?

> [@Alex\_Hummel](#):
>
> FYI: I’m trying to capture all of the responses to build a data structure before I start actually pulling in data to the app.

You can see the schema for each response via the `Model` button. E.g.

 ![image](https://global.discourse-cdn.com/eveonline/original/4X/0/3/8/038332d15bda155cd04e236cbd5b7666093b35d2.png)

Which tells you the name, data type, and if it’s required or not.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [June 14, 2021, 12:03am UTC](https://forums.eveonline.com/t/esi-error-character-id-mismatch-between-request-path-and-auth-token/293063/5 "2021-06-14T00:03:49Z")

</div>

Closed on June 14, 2021, 12:03am UTC

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