Códigos de error
Last update: 4 days ago by Irais Aguirre
Respuesta de error
Cuando ocurre un error, el servicio responde con un código HTTP de error y el siguiente cuerpo. Consulta los Códigos de error.
| Nombre | Descripción | Tipo |
|---|---|---|
| code | Código de error. | Integer |
| detail | Descripción del error. | String |
{"code": 2104,"detail": "Template already exists with ID: 572279198452421"}
Códigos de error
| Código | Descripción | Solución |
|---|---|---|
| 2 | Parameter 'wbaId' must be not null | El campo wba_id es obligatorio. |
| 2 | Parameter 'wbaId' is not valid | El ID de la WABA solo admite dígitos. |
| 2 | Parameter 'name' is not valid | El nombre de la plantilla solo admite letras, números y guion bajo (_). |
| 2 | Parameter 'category' is not valid | La categoría debe ser AUTHENTICATION, MARKETING o UTILITY. |
| 2 | Parameter 'structure' is not valid | El objeto structure es obligatorio. |
| 2 | Parameter 'body' must be not null | El objeto body es obligatorio dentro de structure. |
| 2 | Variables can't be at the start or end of the template. | El texto del cuerpo no puede comenzar ni terminar con una variable. |
| 2 | Parameter 'Body.type' is not valid | El tipo de botón no es válido. Consulta los valores aceptados en el objeto buttons. |
| 2 | Invalid 'message_send_ttl_seconds' for the given category. | El valor de message_send_ttl_seconds está fuera del rango permitido para la categoría de la plantilla. |
| 2 | Package name must have at least two segments separated by dots, each starting with a letter, and only contain alphanumeric or underscores | El valor de package_name no tiene el formato correcto. Consulta el objeto supported_apps. |
| 2 | Signature hash must be exactly 11 characters, alphanumeric or +, /, = | El valor de signature_hash debe tener exactamente 11 caracteres alfanuméricos, +, / o =. |
| 2 | Parameter 'template_name' must not be null | Al eliminar una plantilla, el parámetro template_name es obligatorio. |
| 2 | Parameter 'url' must be not null | Al cargar contenido multimedia, el campo url es obligatorio. |
| 5 | Parameter 'Header.format' is not valid | El formato del encabezado no es válido. Consulta el objeto header. |
| 5 | Parameter 'Header.text' must be not null | El texto del encabezado es obligatorio cuando el formato es TEXT. |
| 5 | Invalid 'header_handle'. GIFs only accept mp4 files. | Para el formato GIF, header_handle debe contener URLs de archivos MP4. |
| 5 | Parameter 'Button.url' is not valid | La URL del botón de tipo URL no es válida. |
| 5 | Parameter 'Button.phoneNumber' must not be null | El campo phone_number es obligatorio en los botones de tipo PHONE_NUMBER. |
| 5 | Zero tap terms acceptance is required | En los botones OTP de tipo zero_tap, el campo zero_tap_terms_accepted es obligatorio. |
| 5 | Supported apps are required for zero_tap | En los botones OTP de tipo zero_tap, el campo supported_apps es obligatorio. |
| 5 | Parameter 'limited_time_offer.text' must be less than or equal to 16 characters | El texto de la oferta por tiempo limitado es obligatorio y admite máximo 16 caracteres. |
| 7 | WABA Info not found | No se encontró la información de la WABA enviada. |
| 10 | Template not deleted | La plantilla no pudo eliminarse. |
| 16 | The number of cards allowed has been exceeded. The maximum number of cards per carousel is 10. | El carrusel admite máximo 10 tarjetas. |
| 17 | Invalid carousel format. Cards must have a head, a text in the body and, at least, one button. | Cada tarjeta del carrusel debe tener header, body y al menos un botón. |
| 18 | Invalid carousel head format. The heading of the cards must be multimedia content (image or video). | El encabezado de las tarjetas solo admite los formatos IMAGE y VIDEO. |
| 19 | Invalid carousel buttons format. The maximum number of buttons per card is 2. | Cada tarjeta del carrusel admite máximo 2 botones. |
| 20 | Invalid carousel buttons type. The allowed buttons type are: PHONE NUMBER, URL, QUICK REPLY. | Los botones de las tarjetas solo pueden ser de tipo PHONE_NUMBER, URL o QUICK_REPLY. |
| 21 | Invalid carousel buttons format. All the cards must have the same buttons number and type. | Todas las tarjetas deben tener la misma cantidad y el mismo tipo de botones. |
| 22 | Invalid carousel head format. All the cards must have the same head format. | Todas las tarjetas deben tener el mismo formato de encabezado. |
| 35 | File size (<tamaño>MB) exceeds maximum allowed (<máximo>MB) for this phone number | El archivo supera el tamaño máximo permitido para el contenido multimedia del encabezado. |
| 55 | Failed to upload media from the provided URL. Please verify the URL is accessible and try again. | No se pudo cargar a Meta el archivo de la URL del encabezado. Verifica que la URL sea pública y vuelve a intentarlo. |
| 56 | Source template not found | La plantilla de origen no existe en la WABA indicada. |
| 57 | Template not found | La plantilla no se encontró localmente en el servicio. |
| 300 | URL Api Graph Read Timeout. Try Again. | Meta no respondió a tiempo. Vuelve a intentarlo. |
| 400 | API Graph URL Message=<message>, Code=<code>, SubCode=<subcode>, ErrorUserTitle=<title>, ErrorUserMsg=<msg> | Error devuelto por Meta. El código corresponde al código HTTP de la respuesta de Meta y el detalle incluye su descripción. |
| 401 | Parameter 'wbaId' not match | El token de autenticación no está asociado a la WABA enviada. |
| 2104 | Template already exists with ID: <template_id> | Ya existe una plantilla con el mismo nombre e idioma en la WABA. |
| 3009 | Authorization Server URL JWT token expired | El token de autenticación expiró. Genera uno nuevo. |
