Error log
document-merge-service_1 | Internal Server Error: /document-merge-service/api/v1/template/
document-merge-service_1 | Traceback (most recent call last):
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
document-merge-service_1 | response = get_response(request)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
document-merge-service_1 | response = self.process_exception_by_middleware(e, request)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
document-merge-service_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
document-merge-service_1 | return view_func(*args, **kwargs)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py", line 114, in view
document-merge-service_1 | return self.dispatch(request, *args, **kwargs)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 505, in dispatch
document-merge-service_1 | response = self.handle_exception(exc)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 465, in handle_exception
document-merge-service_1 | self.raise_uncaught_exception(exc)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
document-merge-service_1 | raise exc
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py", line 502, in dispatch
document-merge-service_1 | response = handler(request, *args, **kwargs)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py", line 18, in create
document-merge-service_1 | serializer.is_valid(raise_exception=True)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py", line 235, in is_valid
document-merge-service_1 | self._validated_data = self.run_validation(self.initial_data)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py", line 433, in run_validation
document-merge-service_1 | value = self.validate(value)
document-merge-service_1 | File "./document_merge_service/api/serializers.py", line 70, in validate
document-merge-service_1 | available_placeholders=available_placeholders, sample_data=sample_data
document-merge-service_1 | File "./document_merge_service/api/engines.py", line 60, in validate
document-merge-service_1 | self.validate_template_syntax(available_placeholders, sample_data)
document-merge-service_1 | File "./document_merge_service/api/engines.py", line 107, in validate_template_syntax
document-merge-service_1 | doc.render(ph, env)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/docxtpl/__init__.py", line 266, in render
document-merge-service_1 | xml_src = self.build_xml(context, jinja_env)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/docxtpl/__init__.py", line 229, in build_xml
document-merge-service_1 | xml = self.render_xml(xml, context, jinja_env)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/docxtpl/__init__.py", line 211, in render_xml
document-merge-service_1 | dst_xml = template.render(context)
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
document-merge-service_1 | self.environment.handle_exception()
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
document-merge-service_1 | reraise(*rewrite_traceback_stack(source=source))
document-merge-service_1 | File "/usr/local/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
document-merge-service_1 | raise value.with_traceback(tb)
document-merge-service_1 | File "", line 23, in top-level template code
document-merge-service_1 | TypeError: must be str, not _MagicPlaceholder