# Userinfo returns E0000022

**URL:** <https://devforum.okta.com/t/userinfo-returns-e0000022/10653>\
**Category:** Questions\
**Created:** [August 24, 2020, 1:52am UTC](https://devforum.okta.com/t/userinfo-returns-e0000022/10653 "2020-08-24T01:52:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenjun](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wenjun](https://devforum.okta.com/u/wenjun)\
**Post date:** [August 24, 2020, 1:52am UTC](https://devforum.okta.com/t/userinfo-returns-e0000022/10653/1 "2020-08-24T01:52:14Z")

</div>

Hello

I am getting “The endpoint does not support the provided HTTP method” with the following test with curl:

curl -v -X POST -H “Authorization: Bearer {access token}” [https://dev-687195.okta.com/oauth2/default/v1/userInfo](https://dev-687195.okta.com/oauth2/default/v1/userInfo)

I also tried “-X GET” and got the same error.

Thanks

---

<div class="post-metadata">

**Author:** ![vijet](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vijet/32/245_2.png) [@vijet](https://devforum.okta.com/u/vijet)\
**Post date:** [August 24, 2020, 5:36pm UTC](https://devforum.okta.com/t/userinfo-returns-e0000022/10653/3 "2020-08-24T17:36:45Z")

</div>

Hi @wenjun,

Can you post the `/authorize` call that you made to get the `access_token`?  
I want to make sure that the your used the same authorization server (`/oauth2/v1/default`) to get the token.

Regards,  
Vijet

---

<div class="post-metadata">

**Author:** ![wenjun](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wenjun](https://devforum.okta.com/u/wenjun)\
**Post date:** [August 24, 2020, 8:51pm UTC](https://devforum.okta.com/t/userinfo-returns-e0000022/10653/4 "2020-08-24T20:51:58Z")

</div>

Hello Vijet

Here is the call to authorize: [https://dev-687195.okta.com/oauth2/default/v1/authorize?client\_id=0oari25zyiFly4ZHF4x6&redirect\_uri=http%3A%2F%2Flocalhost%3A8081%2Fapi%2Foauth\_cb&response\_type=code&scope=openid+profile+email&idp=0oarnuugbRaKgzQIz4x6&state=f7ojogqor5tke8zupdz](https://dev-687195.okta.com/oauth2/default/v1/authorize?client_id=0oari25zyiFly4ZHF4x6&redirect_uri=http%3A%2F%2Flocalhost%3A8081%2Fapi%2Foauth_cb&response_type=code&scope=openid+profile+email&idp=0oarnuugbRaKgzQIz4x6&state=f7ojogqor5tke8zupdz)

---

<div class="post-metadata">

**Author:** ![vijet](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vijet/32/245_2.png) [@vijet](https://devforum.okta.com/u/vijet)\
**Post date:** [August 24, 2020, 11:15pm UTC](https://devforum.okta.com/t/userinfo-returns-e0000022/10653/5 "2020-08-24T23:15:16Z")

</div>

Hi @wenjun,

That seems right to me.  
I’m not sure what could be the issue here.  
Can you also try calling the [introspect](https://developer.okta.com/docs/reference/api/oidc/#introspect) endpoint with the `access_token` to make sure the token is valid?

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [August 25, 2020, 12:20am UTC](https://devforum.okta.com/t/userinfo-returns-e0000022/10653/6 "2020-08-25T00:20:19Z")

</div>

> [@wenjun](#):
>
> curl -v -X POST -H “Authorization: Bearer {access token}” [https://dev-687195.okta.com/oauth2/default/v1/userInfo](https://dev-687195.okta.com/oauth2/default/v1/userInfo)

it should be `userinfo` not `userInfo`

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 24, 2024, 11:58pm UTC](https://devforum.okta.com/t/userinfo-returns-e0000022/10653/7 "2024-01-24T23:58:58Z")

</div>


