shridarpatil / frappe_whatsapp

WhatsApp cloud integration for frappe
https://www.youtube.com/watch?v=nq5Kcc5e1oc
Other
188 stars 169 forks source link

Error - v15 -The parameter template['language']['code'] is required. #54

Closed turqosoft closed 4 months ago

turqosoft commented 9 months ago

Unable to send message using templates. Getting the above error. Attaching the generated paylod.

WAmessagesenderror

shridarpatil commented 9 months ago

Language code in template is null can you verify that?

Mohamed13Ali commented 9 months ago

Hello, facing the same issue here, upon creation of message template, the language code is visible and populated with the correct value, see screenshot below, 1

However, after the template is saved, if you navigate out of it and reopen it (or refresh the template page), the language code field disappears (Screenshot below for the same message template above, taken after refreshing the template page)

2

turqosoft commented 9 months ago

For me the language code is not visible at all during template creation. image

turqosoft commented 9 months ago

How can I use the templates already created in the meta dev site?

elbeicktalat commented 9 months ago

Same issue with Arabic

Failed to trigger whatsapp message: (#100) The parameter template['language']['code'] is required.

I think this is because arabic doesn't countries on ERPNext or even on Meta dev.

elbeicktalat commented 9 months ago

Anyway if I put English_US got this error

Failed to trigger whatsapp message: (#132001) Template name does not exist in the translation

Not sure why, My templates are enabled on the Meta if there is a way to fetch them it'll be the best thing.

elbeicktalat commented 9 months ago

For me the language code is not visible at all during template creation.

After save you'll see it

elbeicktalat commented 9 months ago

How can I use the templates already created in the meta dev site?

I got it, you can fetch templates from meta by going to WhatsApp templates then click on 3 dots and then Fetch templates from Meta

image
github-actions[bot] commented 7 months ago

Stale issue message

shariquerik commented 6 months ago

It should be fixed please confirm @turqosoft

turqosoft commented 6 months ago

It should be. Haven't checked any recent updates though.

Riadat-AlMaemura commented 6 months ago

How can I use the templates already created in the meta dev site?

I got it, you can fetch templates from meta by going to WhatsApp templates then click on 3 dots and then Fetch templates from Meta

image

This is good. I was thinking of Writin a code to bring these templates and synchronize them between WhatsApp and erpNext, but the problem remains of deleted templates or templates that delay their authentication by WhatsApp, and templates with multiple languages.

github-actions[bot] commented 4 months ago

Stale issue message