You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR msal.application:application.py:1152 Refresh token failed
Traceback (most recent call last):
File "C:\Users\user1\Desktop\project\env\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
...
File "C:\Program Files\Python38\lib\ssl.py", line 1173, in send
return self._sslobj.write(data)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\user1\Desktop\project\env\lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
...
File "C:\Users\user1\Desktop\project\env\lib\site-packages\requests\adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
Currently Azure CLI doesn't print MSAL's logs, the real cause will be hidden and all Azure CLI can get is a None result. Making it impossible for the end user to know what happened:
exception(msg, *args, **kwargs)
Logs a message with level ERROR on this logger. The arguments are interpreted as for debug(). Exception info is added to the logging message. This method should only be called from an exception handler.
ERROR:root:calculation failed.
Traceback (most recent call last):
File "D:\cli\testproj\main.py", line 4, in <module>
3 / 0
ZeroDivisionError: division by zero
Describe the bug
Currently when refreshing token fails, MSAL silences the exception and logs and error:
microsoft-authentication-library-for-python/msal/application.py
Lines 1206 to 1207 in 62752ad
Currently Azure CLI doesn't print MSAL's logs, the real cause will be hidden and all Azure CLI can get is a
None
result. Making it impossible for the end user to know what happened:https://github.com/Azure/azure-cli/blob/925d5f93e9caff6fdc74c03b3755d8811d2baf69/src/azure-cli-core/azure/cli/core/auth/util.py#L119-L121
This topic is very similar to the one we discussed in AzureAD/microsoft-authentication-extensions-for-python#92.
The text was updated successfully, but these errors were encountered: