Skip to content

Commit 8ac0995

Browse files
author
Olena Harkusha
committed
Handle WORKFLOW_UPDATE_RECIPIENTROUTING_NOT_ALLOWED error
1 parent 890ce6b commit 8ac0995

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

app/error_handlers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ def process_error(err):
99
error_body = json.loads(error_body_json)
1010
error_code = error_body and "errorCode" in error_body and error_body["errorCode"]
1111
error_message = error_body and "message" in error_body and error_body["message"]
12+
13+
# Handle error specific for use conditional recipients example (eg34)
14+
if error_code == "WORKFLOW_UPDATE_RECIPIENTROUTING_NOT_ALLOWED":
15+
return render_template("error_eg34.html")
16+
1217
# In production, may want to provide customized error messages and
1318
# remediation advice to the user.
1419
return render_template(

app/templates/error_eg34.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- extend base layout -->
2+
{% extends "base.html" %}
3+
{% set title = "Error" %}
4+
{% block content %}
5+
6+
<h2>Use conditional recipients.</h2>
7+
<p>Update to the workflow with recipient routing is not allowed to your
8+
account!<br/>
9+
Please contact with our<a target='_blank'
10+
href="https://developers.docusign.com/support/">
11+
support team </a>to resolve this issue.</p>
12+
13+
<p><a href="/">Continue</a></p>
14+
15+
{% endblock %}

0 commit comments

Comments
 (0)