<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic &amp;quot;error_description&amp;quot;: &amp;quot;missing required field \&amp;quot;grant_type\&amp;quot;&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727643#M32182</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;I am trying to get a sl access token with my refresh token but it gives this error. Any idea why?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Input:&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"body": {
"grant_type": "",
"refresh_token": "&amp;lt;token&amp;gt;"
},
"contentType": "application/json",
"followRedirect": false,
"headers": [
{
"key": "Authorization",
"value": "Basic &amp;lt;key&amp;gt;"
}
],
"method": "POST",
"timeoutSeconds": 5,
"url": "https://api.dropbox.com/oauth2/token"
}

​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "error": {
    "canCatch": true,
    "canRetry": true,
    "cause": "invalid response status code",
    "description": "The HTTP request failed",
    "error": "Flow.Step.HTTPRequest.Failed",
    "metadata": {
      "body": {
        "error": "unsupported_grant_type",
        "error_description": "missing required field \"grant_type\""
      },
      "headers": {
        "Accept-Encoding": [
          "identity,gzip"
        ],
        "Content-Length": [
          "97"
        ],
        "Content-Security-Policy": [
          "sandbox allow-forms allow-scripts"
        ],
        "Content-Type": [
          "application/json"
        ],
        "Date": [
          "Tue, 07 Nov 2023 11:58:41 GMT"
        ],
        "Server": [
          "envoy"
        ],
        "X-Dropbox-Request-Id": [
          "6857e5f3655547459b471405aef54adc"
        ],
        "X-Dropbox-Response-Origin": [
          "far_remote"
        ]
      },
      "statusCode": 400,
      "statusText": "Bad Request"
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 07 Nov 2023 12:04:31 GMT</pubDate>
    <dc:creator>emretezisci</dc:creator>
    <dc:date>2023-11-07T12:04:31Z</dc:date>
    <item>
      <title>"error_description": "missing required field \"grant_type\""</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727643#M32182</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;I am trying to get a sl access token with my refresh token but it gives this error. Any idea why?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Input:&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"body": {
"grant_type": "",
"refresh_token": "&amp;lt;token&amp;gt;"
},
"contentType": "application/json",
"followRedirect": false,
"headers": [
{
"key": "Authorization",
"value": "Basic &amp;lt;key&amp;gt;"
}
],
"method": "POST",
"timeoutSeconds": 5,
"url": "https://api.dropbox.com/oauth2/token"
}

​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "error": {
    "canCatch": true,
    "canRetry": true,
    "cause": "invalid response status code",
    "description": "The HTTP request failed",
    "error": "Flow.Step.HTTPRequest.Failed",
    "metadata": {
      "body": {
        "error": "unsupported_grant_type",
        "error_description": "missing required field \"grant_type\""
      },
      "headers": {
        "Accept-Encoding": [
          "identity,gzip"
        ],
        "Content-Length": [
          "97"
        ],
        "Content-Security-Policy": [
          "sandbox allow-forms allow-scripts"
        ],
        "Content-Type": [
          "application/json"
        ],
        "Date": [
          "Tue, 07 Nov 2023 11:58:41 GMT"
        ],
        "Server": [
          "envoy"
        ],
        "X-Dropbox-Request-Id": [
          "6857e5f3655547459b471405aef54adc"
        ],
        "X-Dropbox-Response-Origin": [
          "far_remote"
        ]
      },
      "statusCode": 400,
      "statusText": "Bad Request"
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2023 12:04:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727643#M32182</guid>
      <dc:creator>emretezisci</dc:creator>
      <dc:date>2023-11-07T12:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: "error_description": "missing required field \"grant_type\""</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727653#M32183</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764202"&gt;@emretezisci&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Haha..&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt; Ok, Yes, a little confusing message, maybe. Don't catch to the words. What grant type you are declaring in fact? 🧐 Nothing? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@44A578B8F41A694F0BC746F21EE561B3/emoticons/1f643.png" alt=":upside_down_face:" title=":upside_down_face:" /&gt; It's something required, cannot be nothing. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 12:43:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727653#M32183</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-11-07T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: "error_description": "missing required field \"grant_type\""</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727654#M32184</link>
      <description>&lt;P&gt;Oh I think it was deducted for some reason.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "body": {
    "grant_type": "refresh_token",
    "refresh_token": "&amp;lt;token&amp;gt;"
  },
  "contentType": "application/json",
  "followRedirect": false,
  "headers": [
    {
      "key": "Authorization",
      "value": "Basic &amp;lt;key&amp;gt;"
    }
  ],
  "method": "POST",
  "timeoutSeconds": 5,
  "url": "https://api.dropbox.com/oauth2/token"
}&lt;/LI-CODE&gt;&lt;P&gt;I use refresh_token.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 12:47:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727654#M32184</guid>
      <dc:creator>emretezisci</dc:creator>
      <dc:date>2023-11-07T12:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: "error_description": "missing required field \"grant_type\""</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727658#M32185</link>
      <description>&lt;P&gt;In addition why are you using application/json encoding? It requires application/x-www-form-urlencoded POST parameters. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 13:07:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727658#M32185</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-11-07T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: "error_description": "missing required field \"grant_type\""</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727674#M32186</link>
      <description>&lt;P&gt;Thanks, for your prompt responses. I am making these requests from another integration that doesn't support&amp;nbsp;&lt;SPAN&gt;application/x-www-form-urlencoded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know any other way to make it work with an&amp;nbsp;application/json encoding?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 13:48:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727674#M32186</guid>
      <dc:creator>emretezisci</dc:creator>
      <dc:date>2023-11-07T13:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: "error_description": "missing required field \"grant_type\""</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727675#M32187</link>
      <description>&lt;P&gt;To be honest, I haven't tried (haven't need), but you may do it by "hands". Shouldn't be so difficult to join names and value using = and &amp;amp; (no additional encoding steps needed in particular - all value are URL compatible already). Right? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 14:16:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727675#M32187</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-11-07T14:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: "error_description": "missing required field \"grant_type\""</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727702#M32191</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764202"&gt;@emretezisci&lt;/a&gt; The &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank"&gt;/oauth2/token endpoint&lt;/A&gt; does not support those parameters being passed as "application/json"; they'll need to be passed as "application/x-www-form-urlencoded". &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While it is recommended to use some library or platform functionality to have that built automatically, as Здравко said you can otherwise try to build that directly.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 15:17:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727702#M32191</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-07T15:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: "error_description": "missing required field \"grant_type\""</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727706#M32192</link>
      <description>&lt;P&gt;Is there any other server-side authentication option that doesn't require&amp;nbsp;&lt;SPAN&gt;"application/x-www-form-urlencoded"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 15:19:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727706#M32192</guid>
      <dc:creator>emretezisci</dc:creator>
      <dc:date>2023-11-07T15:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: "error_description": "missing required field \"grant_type\""</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727712#M32193</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764202"&gt;@emretezisci&lt;/a&gt; There isn't another endpoint for using a refresh token to get a new short-lived access token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your platform doesn't natively provide support for writing the data as "application/x-www-form-urlencoded", I suggest checking your platform's documentation to see how you can supply a string instead so you can build the parameters in your own code, and also override the "Content-Type" header with "application/x-www-form-urlencoded".&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 15:37:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/quot-error-description-quot-quot-missing-required-field-quot/m-p/727712#M32193</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-07T15:37:56Z</dc:date>
    </item>
  </channel>
</rss>

