Closed badjem79 closed 3 weeks ago
I've found that the problem was in the "body_text" part, that should be an Array of Array of strings, not just an Array of strings. Anyway it is impossible to debug without getting the detailed error that is present in the json response inside the "error_user_title" and "error_user_msg" strings.
Any suggestion on how to get that errors?
And I suggest to create a preformatted object to send to CreateTemplateMessage, as building an object like this is error prone.
thanks
hi, creating some template message types usually has other unique properties in defining the component structure of the template message.
Mostly the errors are returned from the API response since the graph API combines whatsapp platform errors from cloud API and business management API. I will include these two properties; "error_user_title" and "error_user_msg".
To create a preformatted object I will have an issue mostly with the components but I will see what I can achieve if I find a common pattern with all the template message types.
I will include these two properties; "error_user_title" and "error_user_msg".
This would be very apreciatet, many thanks
Describe the bug When i call CreateTemplateMessage as in the example below i get the "invalid parameter" error
To Reproduce Code that throws the exception:
this is the json I get if i do serialize templateData:
and this is the error stack trace:
Expected behavior The template should be created
I need at least to know how to debug the call at a deeper level as I can get only the error and I don't know how to move any further
When I use the call to verify the status of another template that allready exists, it works correctly, just to confirm that the ID_BusinessAccount is correct and the auth bearer too
Any help will be apreciated