I get the same error when posting to /oauth/token from my python script. According the links below, setting the content type to “application/x-www-form-urlencoded” in the header might solve your problem. Wasn’t that simple for me, unfortunately, I’m still stuck.
gsingh28
(Ranjeet)
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Python script gets "unsupported grant type" error when getting a token from a Server to Server app | 6 | 1776 | August 2, 2023 | |
| Server to server oAuth Application - grant_type "account_credentials" error | 1 | 856 | May 29, 2023 | |
| Unsupported grant type | 5 | 1925 | October 24, 2023 | |
| Unsupported grant type error | 5 | 1019 | November 28, 2023 | |
| Unsupported_grant_type while trying to get access and refresh token | 5 | 4565 | January 6, 2025 |