Webhook error

I am unable to configure the webhook in the integration with Whtsapp. I'm hosting at Vercel Hobby. Here is the error that appears in Meta Developers:
Callback verification failed with the following errors: curl_errno = 28; curl_error = Operation timed out after 6002 milliseconds with 0 bytes received; HTTP Status Code = 200; HTTP Message = Connection established
Callback verification failed with the following errors: curl_errno = 28; curl_error = Operation timed out after 6002 milliseconds with 0 bytes received; HTTP Status Code = 200; HTTP Message = Connection established
In Vercel logs: 504 Gateway Timeout What could be causing this?
14 Replies
FzinaHaMed
FzinaHaMed7mo ago
i also have this if i find an error i will check i found the error it just needed the serverless function to be near me and also the server less function must be the same in both the builder and viewer @wesleybpereira just restart the viewer its kind of like a one time use
wesleybpereira
wesleybpereira7mo ago
@FzinaHaMed Sorry for my ignorance, but which serverless are you referring to?
FzinaHaMed
FzinaHaMed7mo ago
the function setting in vercel
wesleybpereira
wesleybpereira7mo ago
Got it, @FzinaHaMed ! I'll test it now and get back to you if it works. @FzinaHaMed, with my database region being South America (São Paulo) (sa-east-1)(in Supabase), I also changed Vercel to São Paulo, Brazil (East). I redeployed but the error persists.
FzinaHaMed
FzinaHaMed7mo ago
i see it worked for me just for a second then it stopped working @Vilela did you have any error like this using vercel?
wesleybpereira
wesleybpereira7mo ago
I redid everything. I allocated everyone in the USA (as close as I could), but the error continues.
Baptiste
Baptiste7mo ago
What URL are you inserting in Meta?
wesleybpereira
wesleybpereira6mo ago
I use the URL made available by Vercel. I do the WhatsApp configuration steps in the typebot, it generates webhook URL and token for me to enter in the Meta.
Baptiste
Baptiste6mo ago
Can you provide a screenshot of the error?
wesleybpereira
wesleybpereira6mo ago
No description
Baptiste
Baptiste6mo ago
And on Vercel? Is the URL ends like this? /v1/workspaces/{workspaceId}/whatsapp/{credentialsId}/webhook
FzinaHaMed
FzinaHaMed6mo ago
No it is like this /api/v1/workspaces/{workspaceId}/whatsapp/{credentialsId}/webhook For me
Baptiste
Baptiste6mo ago
Right, it should also start with /api
FzinaHaMed
FzinaHaMed6mo ago
It works for me now Idk how I just added all env variables And then restarted it After that I added the encryption key instead of the other one which is generated Lastly just added it normally like with the generated info
Want results from more Discord servers?
Add your server