Error 415 - Unsupported content type


We are trying to use $request for retrieving an endpoint on docusign whose response headers is of
Content-Type: application/pdf

And the error received is 415 (as below). Please confirm if there is a work around for this.

 status: 415,
  headers: {},
  response: 'Unsupported content type',
  errorSource: 'APP',
  attempts: 1

Hi Raghul kumar,

I think the only content types that are supported by $request are

  • application/json
  • application/xml
  • text/html
  • text/xml
  • text/plain
  • text/javascript

Can you try using the axios npm for making the request - axios - npm.
Similar use-case reference - docusignapi - Node js , Docusign download signed document of the envelope - Stack Overflow


Thank You @banu :+1: Lemme me take a look on it.

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.