# 500 Error on Identity Request (API V2)

**URL:** <https://www.patreondevelopers.com/t/500-error-on-identity-request-api-v2/1174>\
**Category:** API Feedback\
**Created:** [October 3, 2018, 9:53am UTC](https://www.patreondevelopers.com/t/500-error-on-identity-request-api-v2/1174 "2018-10-03T09:53:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![volatile](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/volatile/32/694_2.png) [@volatile](https://www.patreondevelopers.com/u/volatile)\
**Post date:** [October 3, 2018, 9:53am UTC](https://www.patreondevelopers.com/t/500-error-on-identity-request-api-v2/1174/1 "2018-10-03T09:53:35Z")

</div>

Previously-working code requesting the users identity after getting an OAuth access token no longer works (GET request to [https://www.patreon.com/api/oauth2/v2/identity?fields[user]=about,created,email,first\_name,full\_name,image\_url,last\_name,social\_connections,thumb\_url,url,vanity](https://www.patreon.com/api/oauth2/v2/identity?fields%5Buser%5D=about,created,email,first_name,full_name,image_url,last_name,social_connections,thumb_url,url,vanity)). Returns the following:

```
{ errors: [ 
{ code: null,
code_name: 'InternalError',
detail: 'An unrecoverable internal server error has occurred.',
id: 'eba510fb-1cf4-48d7-b6ea-e0281c1a4ea9',
status: '500',
title: 'Internal Error.' } ] }

```

Not sure if this is my problem or if something is wrong with the server or this API endpoint in particular. Being as nothing has changed on my end I’m suspicious that it’s a problem with the server. Thought I would report it just in case. If it turns out to be my fault somehow perhaps the error message could be made to be more descriptive of the error.

---

<div class="post-metadata">

**Author:** ![Meffesino](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Meffesino](https://www.patreondevelopers.com/u/Meffesino)\
**Post date:** [October 3, 2018, 4:57pm UTC](https://www.patreondevelopers.com/t/500-error-on-identity-request-api-v2/1174/2 "2018-10-03T16:57:58Z")

</div>

I have the same problem. I used following link before:

[https://www.patreon.com/api/oauth2/v2/campaigns/2010840/members?include=user&fields[member]=full\_name,last\_charge\_date,last\_charge\_status,lifetime\_support\_cents,currently\_entitled\_amount\_cents,patron\_status,email&fields[user]=social\_connections](https://www.patreon.com/api/oauth2/v2/campaigns/2010840/members?include=user&fields%5Bmember%5D=full_name,last_charge_date,last_charge_status,lifetime_support_cents,currently_entitled_amount_cents,patron_status,email&fields%5Buser%5D=social_connections)

But when I remove the social\_connections section, it is working. Unfortunately I do need the social\_connections part…

---

<div class="post-metadata">

**Author:** ![Ihellmasker](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/ihellmasker/32/674_2.png) [@Ihellmasker](https://www.patreondevelopers.com/u/Ihellmasker)\
**Post date:** [October 4, 2018, 5:42pm UTC](https://www.patreondevelopers.com/t/500-error-on-identity-request-api-v2/1174/3 "2018-10-04T17:42:18Z")

</div>

Same problem here…

---

<div class="post-metadata">

**Author:** ![volatile](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/volatile/32/694_2.png) [@volatile](https://www.patreondevelopers.com/u/volatile)\
**Post date:** [October 4, 2018, 5:52pm UTC](https://www.patreondevelopers.com/t/500-error-on-identity-request-api-v2/1174/4 "2018-10-04T17:52:16Z")

</div>

Thanks for isolating the issue, Meffesino, I don’t actually need that information, so I’ve removed it.

---

<div class="post-metadata">

**Author:** ![Omega](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/omega/32/686_2.png) [@Omega](https://www.patreondevelopers.com/u/Omega)\
**Post date:** [October 6, 2018, 2:47am UTC](https://www.patreondevelopers.com/t/500-error-on-identity-request-api-v2/1174/5 "2018-10-06T02:47:54Z")

</div>

Trying to do a `client_credentials` grant for a creator so that I can look up a patron’s tier, here’s the gist of things:

```
    $tokenRequest = new Request('POST', PatreonService::TOKEN_ENDPOINT);
    $tokenResponse = $this->client->send($tokenRequest, [
        'query' => [
            'grant_type' => 'client_credentials',
            'client_id' => env('PATREON_KEY'),
            'client_secret' => env('PATREON_SECRET'),
            'scope' => 'campaigns campaigns.members campaigns.members[email] campaigns.members.address',
        ],
    ]);

```

Getting the following error:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/patreondevelopers/original/1X/8a615f7337748e06843f303c473a72559b773f2a.png)

---

<div class="post-metadata">

**Author:** ![k3rn31p4nic](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@k3rn31p4nic](https://www.patreondevelopers.com/u/k3rn31p4nic)\
**Post date:** [October 7, 2018, 5:33am UTC](https://www.patreondevelopers.com/t/500-error-on-identity-request-api-v2/1174/6 "2018-10-07T05:33:08Z")

</div>

I’m getting this error whenever I request the `social_connections` attribute of the User scope.

---

<div class="post-metadata">

**Author:** ![nperickson](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/nperickson/32/726_2.png) [@nperickson](https://www.patreondevelopers.com/u/nperickson)\
**Post date:** [November 13, 2018, 5:39am UTC](https://www.patreondevelopers.com/t/500-error-on-identity-request-api-v2/1174/7 "2018-11-13T05:39:53Z")

</div>

The issue with the `social_connections` attribute should be resolved now and you can update your code to pull the information once more. Sorry for the delay and any issues this may have caused!
