Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Error:"Missing grant_type parameter value","error":"invalid_request"

New Here ,
Jul 10, 2020 Jul 10, 2020

I have this errors {"error_description":"Missing grant_type parameter value","error":"invalid_request"} when I am trying to retrive authentication code using https://api.in1.echosign.com/oauth/token url.

how to solve it please help me . I am giving you all my account details.

 

Email ID:[Personal information removed by moderator.]

Application ID: CBJCHBCAABAAuNaCVzG8tTMkcpuvNo9_aLgrzN4IXJZh

Client secret: J55Yxw9GB5YDz8MN1UjJkTvLJVqgbAGK

My Authintication code and all other details are given below:

POST http://api.echosign.com/oauth/token?

code=CBNCKBAAHBCAABAATf1XHjO0WIdAhtziQltQi5OYhyEwzzHa&client_id

=CBJCHBCAABAA2Y0aHfYjTsezcdDkTXtovlaUHyIa9z5z&client_secret=J55Y

xw9GB5YDz8MN1UjJkTvLJVqgbAGK&redirect_uri=https://salesmgmt.cogitoc

entral.com&grant_type=authorization_code HTTP/1.1Content-Type: application/x-www-form-urlencoded

 

POST /oauth/token HTTP/1.1

Host: api.in1.echosign.com

Content-Type: application/x-www-form-urlencoded

 

code=CBNCKBAAHBCAABAATf1XHjO0WIdAhtziQltQi5OYhyEwzzHa&

client_id=CBJCHBCAABAA2Y0aHfYjTsezcdDkTXtovlaUHyIa9z5z&

client_secret=J55Yxw9GB5YDz8MN1UjJkTvLJVqgbAGK&

redirect_uri=https://salesmgmt.cogitocentral.com&

grant_type=authorization_code HTTP/1.1

 

 

Adobe Sign Error 2.png

TOPICS
Adobe Sign forms , SDK
16.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 10, 2020 Jul 10, 2020

This is the poorly named Community Help forum (which is the forum for issues using the forums).
Please tell us what Adobe application you are using so that this can be moved to the proper forum for help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 12, 2020 Jul 12, 2020

I am using Adobe Sign for developers version and I got this error[{"error_description":"Missing grant_type parameter value","error":"invalid_request"}] when I am trying to get the access token, refresh token from Adobe Sign. We use this https://api.in1.echosign.com/oauth/token to get these tokens, and POST these parameters 

POST /oauth/token HTTP/1.1

Host: api.in1.echosign.com

Content-Type: application/x-www-form-urlencoded

code=CBNCKBAAHBCAABAATf1XHjO0WIdAhtziQltQi5OYhyEwzzHa&

client_id=CBJCHBCAABAA2Y0aHfYjTsezcdDkTXtovlaUHyIa9z5z&

client_secret=J55Yxw9GB5YDz8MN1UjJkTvLJVqgbAGK&

redirect_uri=https://salesmgmt.cogitocentral.com&

grant_type=authorization_code HTTP/1.1

 

 

these are given by AdobeSign.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 25, 2020 Oct 25, 2020

Exact same issue as you...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 13, 2020 Jul 13, 2020

I am using Adobe Sign for developers version and I got this error[{"error_description":"Missing grant_type parameter value","error":"invalid_request"}] when I am trying to get the access token, refresh token from Adobe Sign. We use this https://api.in1.echosign.com/oauth/token to get these tokens, and POST these parameters 

POST /oauth/token HTTP/1.1

Host: api.in1.echosign.com

Content-Type: application/x-www-form-urlencoded

code=CBNCKBAAHBCAABAATf1XHjO0WIdAhtziQltQi5OYhyEwzzHa&

client_id=CBJCHBCAABAA2Y0aHfYjTsezcdDkTXtovlaUHyIa9z5z&

client_secret=J55Yxw9GB5YDz8MN1UjJkTvLJVqgbAGK&

redirect_uri=https://salesmgmt.cogitocentral.com&

grant_type=authorization_code HTTP/1.1

these are given by AdobeSign.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 16, 2020 Sep 16, 2020

Please check that code parameter is valid for only 30secs. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 27, 2021 Aug 27, 2021

Post is too old.

I was able to fix it is removing HTTP/1.1 in grant_type.
grant_type=authorization_code

Also, don't share your code/keys publicly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2021 Nov 27, 2021

Untitledauthpostman.png

Auth.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2021 Nov 27, 2021

iam d

facing same issue

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 01, 2021 Dec 01, 2021

same issue

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 18, 2021 Nov 18, 2021

I don't understand why I am getting "Missing grant_type value" when I am including the grant_type value as 

grant_type=authorization_code in my POST

 

Attached is a jpg of my POST:

 

Where else can I get help on this? I ran out of options.

 

Please help,

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 19, 2021 Nov 19, 2021

Can someone please help me with this issue or point me to where I can get the answer for this?

 

Thanks in advance,

 

Louis

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 20, 2021 Nov 20, 2021

Anyone, please.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 25, 2021 Nov 25, 2021

Please ensure the request is sent under Content-Type "x-www-form-urlencoded"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 01, 2021 Dec 01, 2021

Having the same issue

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 01, 2021 Dec 01, 2021

I  was able to resolve my issue, by using:

 

https://secure.na4.echosign.com/oauth/v2/token

 

instead of 

 

https://api.na4.echosign.com/oauth/v2/token

 

I hope that helps you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 16, 2021 Nov 16, 2021

Hello, 

 

I am trying to get access token using this post request:

 

https://secure.na3.echosign.com/public/oauth/v2/token?
code=xxxxxxx&
client_id=xxxxxxxxx&
client_secret=xxxxxxxxxxx&
redirect_uri=https://mydomain.com&
grant_type=authorization_code

 

When I send this request I get the following message:

 

{
    "error_description""Missing grant_type parameter value",
    "error""invalid_request"
}
 
I am not missing the grant_type parameter as you can see from my url request.
 
What am I doing wrong?
 
Please help, Thank you.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 17, 2021 Nov 17, 2021

the Post request to get the access token cannot be done with url parameters, see

https://secure.eu1.echosign.com/public/static/oauthDoc.jsp

also you need to call the api endpoint

https://api.eu1.echosign.com 

(adjust for your region/shard if needed)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 17, 2021 Nov 17, 2021

Hi Simon, thanks for your response.

 

The reason I am calling the api endpoint as https://secure.na3.echosign.com is because I've read that it should be the same as the url in my Adobe Sign account as you can see in the image I am attaching (url.jpg). But you are saying it should be https://api.eu1.echosign.com?

 

I am also getting 401 (Unauthorized)

 

any other suggestions please let me know.

 

Thanks,

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 25, 2021 Nov 25, 2021

Please ensure the request is sent under Content-Type "x-www-form-urlencoded"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 03, 2022 May 03, 2022

Did you manage to find a solution for your issue with oauth/v2/token? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 27, 2022 Dec 27, 2022

Make sure you don't pass all parameters as query string, it has to be x-www-form-urlencoded

Victor24451361scns_0-1672161843931.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 06, 2024 May 06, 2024

Using "x-www-form-urlencoded" instead of a "raw" body fixed my issues. Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 28, 2024 Mar 28, 2024

I've found that removing the 'v2/' from the url works for me. So the url I used for refresh was:

https://api.na1.adobesign.com/oauth/refresh?grant_type=refresh_token&refresh_token={myToken}&client_...}

The header, as stated before, MUST be:

Content-Type: application/x-www-form-urlencoded

 

I hope this helps others. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 09, 2024 Dec 09, 2024
LATEST

I have just run into this issue, and this last suggestion worked for me. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines