**Summary** When connecting a Gmail account, we got the following error: <!-- Description of the issue -->  **Steps to reproduce** 1. Connect GMAIL account 2. After selecting your account in the popup, error will show <!-- Actions required to reproduce the issue --> **Actual Result** <!-- Description of an actual behavior --> **Expected Result** <!-- Suggestions for correct behavior --> **Details about your environment** - OroCRM version: 4.1.6 - PHP version: 7.4 - Database mysql <!--- - [Optional] Server operating system (Windows, Ubuntu, CentOS, RHEL, Fedora, other Linux OS) version and bitness (32-bit, 64-bit) - [Optional] Installed extensions and any added customizations - [Optional] Web-server (Apache, Nginx) version and PHP setup method (as a module, or PHP-FPM) - [Optional] Client operating system (Windows, Linux, MacOS, iOS, Android) version - [Optional] Client browser and its version --> **Additional information** <!-- [Optional] Screenshots or relevant excerpts from the web-server and application log files. --> <!-- For best practices and an issue report example, see https://doc.oroinc.com/community/issues/ -->