-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.Managed Identity
Description
The format to parse the expires_on field is m/%d/%Y %H:%M:%S, however, 2017-09-01 version of managed identity service on App Services for Windows returns a payload with date times formatted as "expires_on":"1/10/2020 8:01:28 AM +00:00", which results in error:
Traceback (most recent call last):
File "app.py", line 4, in <module>
parsed = time.strptime(expires_on[: -len(" +00:00")], "%m/%d/%Y %H:%M:%S")
File "/usr/lib/python3.6/_strptime.py", line 559, in _strptime_time
tt = _strptime(data_string, format)[0]
File "/usr/lib/python3.6/_strptime.py", line 365, in _strptime
data_string[found.end():])
ValueError: unconverted data remains: AM
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.Managed Identity