# Issue with OAuth2 "error:invalid\_client"

**URL:** <https://community.postman.com/t/issue-with-oauth2-error-invalid-client/35209>\
**Category:** Help Hub\
**Tags:** tests, authentication, json\
**Created:** [May 11, 2022, 11:44am UTC](https://community.postman.com/t/issue-with-oauth2-error-invalid-client/35209 "2022-05-11T11:44:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcardoso.arg91](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/dcardoso.arg91/32/11964_2.png) [@dcardoso.arg91](https://community.postman.com/u/dcardoso.arg91)\
**Post date:** [May 11, 2022, 11:44am UTC](https://community.postman.com/t/issue-with-oauth2-error-invalid-client/35209/1 "2022-05-11T11:44:51Z")

</div>

Following [this](https://blog.postman.com/generate-spotify-playlists-using-a-postman-collection/) and [this](https://blog.postman.com/daily-mix-with-postman-monitors-and-spotify/) links to understand about monitors and create some funny and good playlists on Spotify, I’m facing about this error below:

error: invalid\_client

The error appear just on POST Get Auth Key

Below some screenshots:

Body:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/d/de4fc08afc07d64a746a8d4da56c8b530b05fde2.png)

Pre-request Script:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/e/ee84306b2961dd7133b4a5a9addcbdf38f3ff2b6.png)

Tests:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/1/115e6260ddada40545d1423466b8f5ad7d48e544.png)

PS: On Auth, I tried to follow a similar question that I found here, and I changed the “Client Authentication” to “Send client credentials in body”, but not worked:

Any help to solve this error?

Thank You!  
Denis Cardoso
