Error when submitting an example Docusign Signature form

Created on 10 June 2024, 7 months ago

Hello,

I have an error when submitting an example Docusign Signature form.

These are, below, the steps that I followed :

1. I access the ‘Docusign examples’ page of the Docusign Signature module installed in our Drupal site.

2. I have 4 different models displayed on the page. Then I choose ‘Embedded signature’.

3. I fill in the fields in the form that appears: ‘Email’, ‘Name’, and ‘DocuSign template identifier’ (see attached file for the location where I retrieved the Template ID).

4. When I submit the form, I get the following error message: (see the attached file for the error message on the web page) :

The website encountered an unexpected error. Try again later.

TypeError: Drupal\docusign_signature\ClientBase::createEnvelope(): Return value must be of type ?string, none returned in Drupal\docusign_signature\ClientBase->createEnvelope() (line 130 of modules/contrib/docusign_signature/src/ClientBase.php).

Drupal\docusign_signature_examples\Form\EmbeddedSignature->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('docusign_signature_examples_embedded_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @rvck2007
  • Status changed to Needs review 6 months ago
  • 🇫🇷France S3b0uN3t Nantes

    Helllo,

    Thanks for your feednack. I have fixed all missing returns.

    Cheers,

  • Hello S3b0uN3t.
    I have tried today to use the template example Docusign Signature form.
    As you can see in the picture (see screenshots attached), I have filled the form with the good template ID,
    but when I click on "submit", nothing happen

  • 🇫🇷France S3b0uN3t Nantes

    Hello,

    There is currently no stable version of this module. This is a draft which is only available in development version.
    The choice to use it is at your own risk.

    In my last tests, all examples were functional.
    Have you looked at the logs to identify any errors reported by the DocuSign API response?

    If you ever identify a bug, don't hesitate to suggest a patch or a merge request.

    Sincerely,

  • Status changed to Closed: outdated 2 months ago
Production build 0.71.5 2024