Skip Menu |

This queue is for tickets about the Document-eSign-Docusign CPAN distribution.

Report information
The Basics
Id: 102205
Status: resolved
Priority: 0/
Queue: Document-eSign-Docusign

People
Owner: Nobody in particular
Requestors: GHENRY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.02



Subject: 415 unsupported content-type
For some reason application/json is not getting set. Doing $ds->debug(1); shows: Got sign template request: $VAR1 = 'Document::eSign::Docusign::requestSignatureFromTemplate'; $VAR2 = bless( { 'args' => { 'userid' => 'xx-47fe481fd588', 'accountid' => 'xx172', 'authxml' => '<DocuSignCredentials><Usernamexx-47fe481fd588</Username><Password>xx</Password><IntegratorKey>xx-d5a9cdd75225</IntegratorKey></DocuSignCredentials>', 'name' => 'SureVoIP', 'sitedescription' => '', 'username' => 'Gavin Henry', 'email' => 'ghenry@surevoip.co.uk', 'defaulturl' => 'https://demo.docusign.net/restapi', 'password' => 'xx', 'debug' => 1, 'isdefault' => 'true', 'baseurl' => 'https://demo.docusign.net/restapi/v2/accounts/xx172', 'integratorkey' => 'xx-d5a9cdd75225' } }, 'Document::eSign::Docusign' ); $VAR3 = 'accountId'; $VAR4 = 'xx'; $VAR5 = 'emailSubject'; $VAR6 = 'You have a document to sign from ACME.com.'; $VAR7 = 'emailBlurb'; $VAR8 = 'Here is the XYZ document for you to sign.'; $VAR9 = 'templateId'; $VAR10 = '7xx-C5F000D1A420'; $VAR11 = 'templateRoles'; $VAR12 = [ { 'email' => 'ghenry@suretec.co.uk', 'name' => 'Paul Smith', 'roleName' => 'Customer' } ]; $VAR13 = 'status'; $VAR14 = 'sent'; $VAR15 = 'eventNotification'; $VAR16 = {}; at /usr/local/share/perl/5.14.2/Document/eSign/Docusign.pm line 297. Got send request: $VAR1 = 'Document::eSign::Docusign::sendRequest'; $VAR2 = bless( { 'args' => { 'userid' => 'xx-47fe481fd588', 'accountid' => '889172', 'authxml' => '<DocuSignCredentials><Usernamexx-47fe481fd588</Username><Password>xx</Password><IntegratorKey>xx-d5a9cdd75225</IntegratorKey></DocuSignCredentials>', 'name' => 'SureVoIP', 'sitedescription' => '', 'username' => 'Gavin Henry', 'email' => 'ghenry@surevoip.co.uk', 'defaulturl' => 'https://demo.docusign.net/restapi', 'password' => 'xx', 'debug' => 1, 'isdefault' => 'true', 'baseurl' => 'https://demo.docusign.net/restapi/v2/accounts/xx72', 'integratorkey' => 'xx-d5a9cdd75225' } }, 'Document::eSign::Docusign' ); $VAR3 = 'POST'; $VAR4 = 'application/json'; $VAR5 = '<DocuSignCredentials><Usernamexx-47fe481fd588</Username><Password>xx</Password><IntegratorKey>xx-d5a9cdd75225</IntegratorKey></DocuSignCredentials>'; $VAR6 = 'https://demo.docusign.net/restapi/v2/accounts/xxx172/envelopes'; $VAR7 = 'accountId'; at /usr/local/share/perl/5.14.2/Document/eSign/Docusign.pm line 297. POST https://demo.docusign.net/restapi/v2/accounts/xx172/envelopes Accept: application/json User-Agent: libwww-perl/6.04 Content-Length: 11 Content-Type: application/x-www-form-urlencoded X-DocuSign-Authentication: <DocuSignCredentials><Usernamexx-47fe481fd588</Username><Password>xx</Password><IntegratorKey>xx-d5a9cdd75225</IntegratorKey></DocuSignCredentials> "accountId" HTTP/1.1 415 Unsupported Media Type Cache-Control: no-cache Date: Wed, 18 Feb 2015 21:45:09 GMT Content-Length: 101 Content-Type: application/json; charset=utf-8 Client-Date: Wed, 18 Feb 2015 21:45:10 GMT Client-Peer: 209.46.117.172:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=Terms of use at https://www.verisign.com/rpa (c)06/CN=VeriSign Class 3 Extended Validation SSL SGC CA Client-SSL-Cert-Subject: /1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Washington/businessCategory=Private Organization/serialNumber=602284618/C=US/ST=Washington/L=Seattle/O=DocuSign, Inc./OU=Production Operations/OU=Terms of use at www.verisign.com/rpa (c)05/CN=demo.docusign.net Client-SSL-Cipher: AES256-SHA Client-SSL-Socket-Class: IO::Socket::SSL Strict-Transport-Security: max-age=31536000; includeSubDomains {\r "errorCode": "INVALID_CONTENT_TYPE",\r "message": "Content Type specified is not supported."\r } Uh oh, we had an error: 415 Unsupported Media Type at ./docusign.pl line 57.
Was a bug in LWP::UserAgent 6.04 from just before 2013. Upgrading to 6.22 and $ua->default_header in sendRequest.pm is honoured in a POST. It was reverting to www-urlencoded form etc. Closing.