Legacy Dev Forum Posts

 View Only

Sign Up

Error on getting dateLastLogin for Users through Python SDK

  • 1.  Error on getting dateLastLogin for Users through Python SDK

    Posted 06-05-2025 18:09

    ChrisEllis | 2023-06-26 16:07:05 UTC | #1

    Hi, I'm trying to retrieve the dateLastLogin time for users through the get_users function in the UsersApi. This works through postman and I can see there is a user with: "dateLastLogin": "0000-12-30T00:00:00Z"

    However when using the python SDK I'm getting an exception thrown by the SDK:

    File "/usr/local/lib/python3.11/site-packages/PureCloudPlatformClientV2/apiclient.py", line 781, in _deserialize_datetime raise ApiException( PureCloudPlatformClientV2.rest.ApiException: (0) Reason: Failed to parse 0000-12-30T00:00:00Z into a datetime object

    Is there any workaround or solution for this?


    tim.smith | 2023-06-26 17:11:26 UTC | #2

    ChrisEllis, post:1, topic:20676
    Reason: Failed to parse 0000-12-30T00:00:00Z into a datetime object

    That's a legitimate error. Your user definitely didn't log in at midnight UTC on New Year's Eve in year 0. Please open a case with Genesys Cloud Care to report the invalid value being returned by the API.


    system | 2023-07-27 17:12:12 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 20676