Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

How to Fix Microsoft Teams Env_Check_Error

Madalina DinitaFebruary 10, 2021 Comments (1)
fix microsoft teams env_check_error

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.

Contents

  • 1 Fix Microsoft Reams env_check_error on Windows and Mac
    • 1.1 Delete the Settings.json File
      • 1.1.1 Windows 10
      • 1.1.2 Mac
    • 1.2 Clean the Hosts File
      • 1.2.1 Steps to Reset the Hosts File on Windows 10
      • 1.2.2 Steps to Reset the Hosts File on Mac
    • 1.3 Clear the Cache
      • 1.3.1 Windows
      • 1.3.2 Mac
    • 1.4 Conclusion

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:\Users\UserName\AppData\Roaming\Microsoft\Teams.
  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

Mac

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 Home → Library → Application Support→ Microsoft → 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: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 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%\System32\Drivers\Etc 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 Enter.open 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.
##
127.0.0.1 localhost
255.255.255.255 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.

Windows

  1. Exit Teams and close all the Office processes running in the background.
  2. Then type in %appdata%\Microsoft\teams in the Windows search bar.delete teams cache files
  3. Delete all the files from the following Teams folders:
    • %appdata%\Microsoft\teams\application cache\cache
    • %appdata%\Microsoft\teams\blob_storage
    • %appdata%\Microsoft\teams\Cache
    • %appdata%\Microsoft\teams\databases
    • %appdata%\Microsoft\teams\GPUcache
    • %appdata%\Microsoft\teams\IndexedDB
    • %appdata%\Microsoft\teams\Local Storage
    • %appdata%\Microsoft\teams\tmpdelete teams cache files.
  4. Restart your computer and launch Teams again.

Mac

  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 tmp.microsoft teams delete app cache macOS
  4. Launch Teams again and check if the error persists.

Conclusion

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.

Categories: Software

Author Madalina Dinita

Madalina has been a Windows fan ever since she got her hands on her first Windows XP computer. She is interested in all things technology, especially emerging technologies -- AI and DNA computing in particular.

You Might Also Like

  • message failed to send snapchat

    Fix Message Failed to Send in Snapchat

    Madalina DinitaSoftware
  • Zoom: How to Enable a Reminder Before a Meeting

    Mel HawthorneSoftware
  • Zoom: How to See Your Webcam When You’re Talking

    Mel HawthorneInternet
  • convert outlook meeting to teams meeting

    How to Convert Outlook Meetings to Teams Meetings

    Madalina DinitaSoftware

Comments

  1. Marcelo Menchi says:
    September 2, 2022 at 5:30 pm

    I have similar error and I couldn’t find a solution, in logs file I found some errors but the teams window show this error:
    Error code – caa20002
    There’s a more permanent way to sign in to Microsoft Teams.

    Could you help me? Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

  • battery issues after windows 11 update

    Battery Issues After Windows 11 Update? Here’s the Fix

  • why is ram so expensive

    Why Is RAM Suddenly So Expensive?

  • how to fix error code 0x800f0922 windows 11

    How to Fix Error Code 0x800f0922 in Windows 11

  • service outage message on Xbox

    What to Do With a Service Outage Message on Xbox

  • signs your hdd is failing

    Signs That Your HDD Is Failing

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2026 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2026 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on February 10, 2021 by Mitch Bartlett