1. Problem
an error occurs when sending a text message:
"Code":"FailedOperation.TemplateIncorrectOrUnapproved",
"Message":"template is not approved or request content does not match the approved template content"
2. Solution
the reason for the error is that the template content parameters are inconsistent with the set parameters. Set to consistent. As shown in the following figure, the template content has two parameters, so the templateparamset in the code should also set two parameters
/* Template parameters: If no template parameters, set to empty */
String[] templateParamSet = {"", "60"};
req.setTemplateParamSet(templateParamSet);
Read More:
- Tencent cloud container easyexcel export excel error NoClassDefFoundError: could not initialize class sun.awt.x11fontmanager
- Gateway Error: Cannot resolve org.springframework.cloud:spring-cloud-starter-gateway:unknown
- How to Fix Error when integrating spring cloud openfeign with spring cloud Alibaba
- SharePoint site shows ‘Service Unavailable. HTTP Error 503. The service is unavailable’
- How to Solve Spring Cloud Error context has been closed already
- Docker service startup error: Job for docker.service failed because the control process exited with error code.
- [Solved] Spring cloud load balancing, error: no instances available for localhost
- Spring cloud Eureka error creating bean with name
- [Solved] Spring cloud introduces zuul dependency error
- cloud.callFunction:fail Error:wx is not defined [How to Solve]
- [Solved] Playbook Start Nginx Error: Unable to start service nginx: Job for nginx.service fd with error code
- [Solved] Spring cloud config server can’t parse the YML file of the remote warehouse, and it will also report an error
- How to Solve Docker ERROR: Service’workspace’ failed to build: ERROR: Service’php-fpm’ failed to build
- [Solved] Error contacting service. It is probably not running.
- [Solved] Error contacting service. It is probably not running.
- [Solved] The type or namespace name ‘Service’ does not exist Error
- [Solved] Android Error: java.lang.IllegalStateException: Not allowed to start service Intent
- [ERROR] [1632398141.557684, 290.045000]: Spawn service failed. Exiting.
- How to Solve jupyter notebook service error
- cannot create windows service for mysql. error:0 [How to Solve]