---
url: /errors/queue_email_message_internal_template_rendering_failed.md
---
# `queue_email_message_internal_template_rendering_failed`

`queue_email_message_internal_template_rendering_failed`

## Description

The internal email template could not be rendered while queueing the message.

## HTTP Status

`400 Bad Request`

## `doc_url` Format

The `doc_url` value is an absolute URL and changes by environment:

`<docs-base-url>/errors/queue_email_message_internal_template_rendering_failed`

## Typical Causes

* The email template renderer threw an unexpected runtime error.
* The template assets or styles could not be loaded.
* A template implementation bug produced an invalid render result.

## Example

Response:

```json
{
  "errors": [
    {
      "code": "queue_email_message_internal_template_rendering_failed",
      "message": "The internal template rendering failed.",
      "doc_url": "https://docs.example.com/errors/queue_email_message_internal_template_rendering_failed"
    }
  ]
}
```

## How To Fix

1. Inspect the service logs for the template rendering failure.
2. Fix the template or rendering dependency that failed.
3. Retry the request.
