WhatsApp API connection failed. Error: Cannot read properties of null (reading 'replace')