Legacy Dev Forum Posts

 View Only

Sign Up

Telephony api - 'get sites' fails with AttributeError

  • 1.  Telephony api - 'get sites' fails with AttributeError

    Posted 06-05-2025 18:08

    msladecek | 2018-10-05 12:32:43 UTC | #1

    Hi, we've been experiencing problem when using this method:

    PureCloudPlatformClientV2.TelephonyProvidersEdgeApi().get_telephony_providers_edges_sites()

    The call always fails with

    AttributeError: module 'PureCloudPlatformClientV2.models' has no attribute 'LocalDateTime'

    Our current workaround is to call the web api directly using requests, which works perfectly well.

    requests.get("https://api.mypurecloud.ie/api/v2/telephony/providers/edges/sites", headers={...})

    We first noticed this issue on Sep 10, 2018, on client v35.1.0. I tried it again this morning with client v43.0.0, but the issue prevails. The workarnoud currently covers our needs, so this isn't super high priority problem, but I'd like to figure out what's going on.

    Can you give me any advice?


    tim.smith | 2018-10-05 13:02:07 UTC | #2

    This is a known issue being tracked as API-3670.


    system | 2018-11-05 13:02:11 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: 3681