Lagos, Nigeria

How to Fix Microsoft Teams Env_Check_Error – Technipages

If you manage to log in to your Microsoft Teams account, you’re luckier than many other users out there. Login errors are among some of the most common glitches affecting the app. And they almost always occur at the worst possible time. After all, you know what Finagle’s law of dynamic negatives says: “Anything that can go wrong, will—at the worst possible moment.

The env_check_error is a rare login error that prevents Teams users from signing in. Basically, it indicates Teams failed to connect to the settings endpoint. In this guide, we’ll explore what troubleshooting methods you can use to fix it.

Fix Microsoft Reams env_check_error on Windows and Mac

Delete the Settings.json File

Windows 10

  1. Exit Teams completely and navigate to C:UsersUserNameAppDataRoamingMicrosoftTeams.
  2. Then locate and delete the Settings.json file.
  3. Launch Teams again and check if you can log in now.

microsoft teams settings file


If you’re used to using Terminal, you can quickly delete the file by running this command: rm /Users/UserName/Library/Application Support/Microsoft/Teams/settings.json.

Or you can navigate to HomeLibrary Application SupportMicrosoft Teams folder. Open the Teams folder and delete the Settings.json file.

microsoft teams settings.jason file macOS

Clean the Hosts File

Additionally, certain entries in your Hosts file could be blocking Microsoft’s servers. Close Teams, ensure the Hosts file is clean, and try to sign in to your account again. Resetting the Hosts file to default settings can help fix connectivity issues.

Steps to Reset the Hosts File on Windows 10

  1. Launch Notepad and paste the following script into the new file:
    • # Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a ‘#’ symbol. # # For example: # # # source server # # x client host # localhost name resolution is handle within DNS itself. # localhost # ::1 localhost
  2. Then click on the File menu, select Save as, and type “hosts” in the File name box.
  3. Save the file to your desktop and exit Notepad.
  4. Then go to %WinDir%System32DriversEtc and open the Etc folder.etc folder windows 10
  5. Right-click the Hosts file, select Rename, and name the file Hosts.old.rename hosts file windows 10
  6. You can now move the Hosts file you saved on your desktop to the Etc folder. Check if the env_check_error persists.

Steps to Reset the Hosts File on Mac

  1. Start Terminal and enter sudo nano /etc/hosts.
  2. Then hit the Return key and type in your passoword when prompted.
  3. You can now edit your Mac Hosts file.hosts file macOS
  4. Check if there are any entries in the Hosts file that might be blocking Teams. Remove all of them.

An Alternative Method

  1. Launch Finder, hit the Go menu, and select Go to folder.
  2. Then enter /private/etc/hosts and press Hosts file macOS
  3. Drag the Hosts file to your desktop.macOS etc folder hosts file
  4. Open it using your default text editor and delete all the entries.
  5. You can then paste the default Mac Hosts file script into the Hosts file:

# Host Database
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
## localhost broadcasthost

::1 localhost.

Drag the Hosts file back to its original folder and check if Teams is working properly now.

For more information about editing your Hosts file, see How to Edit Your Mac’s Hosts File & Why You Might Want To.

Clear the Cache

Clearing the cache helps you to delete temporary files that may be blocking your connection to Microsoft’s servers. Meanwhile, don’t forget to backup important data before following the steps below.


  1. Exit Teams and close all the Office processes running in the background.
  2. Then type in %appdata%Microsoftteams in the Windows search bar.delete teams cache files
  3. Delete all the files from the following Teams folders:
    • %appdata%Microsoftteamsapplication cachecache
    • %appdata%Microsoftteamsblob_storage
    • %appdata%MicrosoftteamsCache
    • %appdata%Microsoftteamsdatabases
    • %appdata%MicrosoftteamsGPUcache
    • %appdata%MicrosoftteamsIndexedDB
    • %appdata%MicrosoftteamsLocal Storage
    • %appdata%Microsoftteamstmpdelete teams cache files.
  4. Restart your computer and launch Teams again.


  1. Quit Microsoft Teams. Launch Finder and hold down the Option key. Click on the Go menu and select Library.
  2. Then go to “~/Library/Application Support/Microsoft/Teams/ and open the Teams folder.
  3. Delete the files in the following folders: Application Cache, blob_storage, Cache, databases, GPUCache, IndexedDB, Local Storage, and teams delete app cache macOS
  4. Launch Teams again and check if the error persists.


To sum up, you can quickly fix the env_check_error by deleting the Settings.json file. Meanwhile, if that method doesn’t work, reset the Hosts file to default settings and clear the app cache.

Let us know which solution worked for you. Let’s continue the conversation in the comments below.

This post was written by Madalina Dinita and was first posted to Technipages

Do you find this article helpful? Your Friend might too. So, please Share it with them using the Share button above.
Will you like to get notified when I post new updates? Then Follow me on any of my social media handles: Google News, Telegram, WhatsApp, Twitter, Facebook, Pinterest.
You can also drop your email address below if you wish to be notified by mail.

Tags: , ,

%d bloggers like this: