Hi, Iโm having a problem when trying to send whatsapp notifications using TWILIO. Iโm getting the following error:
Workflow rule โwhatsappโ field โWebhookโ expression โBasic QUM5NTM5YzlhOTU3ZTdjYjZjZjdhZjJhMjgxODMzZDI5NDozNjIxNjU3OGVjZGYyMjQwN2I4YWY3MWRhNzcxNGFjNg==โ contains an invalid expression โExpression โBasic QUM5NTM5YzlhOTU3ZTdjYjZjZjdhZjJhMjgxODMzZDI5NDozNjIxNjU3OGVjZGYyMjQwN2I4YWY3MWRhNzcxNGFjNg==โ could not be parsed due to exception: The given key was not present in the dictionaryโฆโ.
I have read the appsheet documentation to set up Basic Authetication headers, but Iโm still not getting my headers right. From what I understood, I should write my header as follow:
Authorization: โBasic QUM5NTM5YzlhOTU3ZTdjYjZjZjdhZjJhMjgxODMzZDsSSozNjIxNjUA3GVSSGYyMjQwN2I4YWY3MWRsjfNGFjNg==โ
Is that right? Or what am I getting wrong?
Thanks in advance for your help!!
Thatโs what I have with one of my working basic auth webhooks.
Try to change HTTP Content Type to JSON?
This is not an HTTP request, by any stretch:
Sorry, Iโm just completely new at this. So the error is generated from the HTTP request body? So the headers are ok?
And for the body, can you help me? What I did was just copying and pasting the cURL code snippet I got from Postman. What should I do instead?
I have no ideaโI have no experience with Twilio. But I know enough about HTTP to know a curl command line isnโt valid. Someone else will have to guide you.
Heh, totally missed that Body when I looked at it.
Try the HTTP code instead
There should be a section at the bottom that includes all of your values (looks like To,From, and Body) wrapped inside of curly braces. Something like:
{
โToโ : โxxxxโ,
โFromโ : โxxxxโ,
โBodyโ : โxxxxโ
}
Paste that into the Body field and see if it works.
Thanks for your help Mark! I did what you said and Iโm not getting any error on my log anymore. Check it out.
Now the problem is that Iโm not getting any message notification, even though thereโs no error showing up in the log.
What could be wrong?
I suspect you need to format the Body as I showed in my previous post, as well as change the HTTP Content Type to JSON.
Thanks again Marc. I just did what you said and Iโm still not getting any whatsapp message, even though thereโs no error in my log.
Any other idea?
I also tried it with lower cases with no positive result.
{,
โtoโ: โwhatsapp:+5XXX59721XX2โ,
โfromโ: โwhatsapp:+1415XXXX886โ,
โbodyโ: โxxxxxxxxxx!!!โ,
}
Not without digging into the Twilio API docs and doing my own testing.
User | Count |
---|---|
43 | |
32 | |
25 | |
23 | |
14 |