Root Cause: HTTP400 – The size of the request headers is too long

TL;DR; Unable to create new workplace accounts in Windows 10. Root cause = ‘400. The size of the request headers is too long’ when sending OAUTH API requests to https://login.microsoftonline.com/common/oauth2/v2.0/authorize. Multiple instances of x-ms-DeviceCredential & x-ms-RefreshTokenCredential in Request Headers. How to fix?


Root Cause: 400. The size of the request headers is too long.

This all began when I started using ‘Work Profiles’ in Microsoft Edge. After adding around 10, I started receiving errors adding more. Following on from this, I was then unable to:

  • Add new mailboxes to Outlook Desktop App (existing mailboxes OK)
  • Add new OneDrive for Business connections (existing connections OK)
  • Add new connections via ‘Access work or school’ in Windows Settings (existing connections OK)

I would receive spurious errors like Unable to access the Internet, No Network Connection, HTTP400 error connecting to login.microsoftonline.com, and Check your internet connection, and then try again (Error Code: 0x80004e4c3.

Everything via a web browser works fine, I can sign-in to Microsoft 365 web services (Outlook, OneDrive, Word, Excel etc) no problem at all – this only happens using local Windows apps and services.

Using Fiddler I failed miserably to capture any errors using the System Proxy feature, OneDrive, Outlook, Windows Settings would just report ‘no internet’ and Fiddler would log nothing, until I used the Microsoft SaRa tool – it did capture what I believe to be the root cause:

HTTP Error 400. The size of the request headers is too long.

… in the Response Body to a GET https://login.microsoftonline.com/common/oauth2/v2.0/authorize OAUTH API call. Furthermore I noted some 12 instances of x-ms-DeviceCredential each with a 2,497 character token and 11 instances of x-ms-RefreshTokenCredential each with a 2,187 character token in the Request Headers, so in total, a 56,318 character Request Header, including the usual Method, URL, Accept Headers etc. I assume this is some sort of SSO feature.

I’m guessing that the https://login.microsoftonline.com/common/oauth2/v2.0/authorize API end-point does not accept such large Request Headers, and so reports the HTTP400 error above.

TROUBLESHOOTING

  1. Proven everything works fine in a new Windows profile.
  2. Proven everything works fine in a separate virtual machine.
  3. Cleared all browser cached files, cookies, everything.
  4. Signed-out of all Microsoft Edge work profiles.
  5. Reset all work profiles.
  6. Followed an online guide to completely uninstall/reinstall Microsoft Edge, deleted all files, profiles, registry entries (and, yes, this did cause problems).
  7. Followed some online guides about enabling older TLS versions, resetting network settings, resetting IE settings, resetting OneDrive.
  8. Deleted two ‘Work school accounts’ in Windows Settings.
    *Note: this then prevented access via Outlook, but I am now unable to add them back – error above 🙁

CONCLUSION

I believe I have found the root cause but how do I fix this?

The more work accounts I delete, the more existing access I lose and I fear that if I delete them all, I’ll just lose access to everything with no way of setting them back up.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật