Browsers have limits ranging from 2KB to 8KB. The token lengths for OneDrive and SharePoint are larger than 1KB and stored in web cookies, so you may hit the following error during login or when fetching a file list.

Sometimes, no Exception information is shown in the response.

You can check the tomcat logs and find that the "Request header is too large".
To avoid getting the "Error parsing HTTP request header" error, you should configure
maxHttpHeaderSizefor Tomcat to increase the value.
$TOMCAT_HOME/conf/server.xml.
server.xml, change the
HTTP/1.1 Connectorentry and set
maxHttpHeaderSizeto 65536 (64KB in bytes), as shown below:
<Connector port="8080" maxHttpHeaderSize="65536" protocol="HTTP/1.1" ... />