• This topic has 1 reply, 1 voice, and was last updated July 18, 2019 by David S.

Exception occurred in API: Invalid session

  • Using a Python script to communicate with 3 different Zerto servers

    • 1 of the servers works perfectly fine, as expected
    • the other 2 give me a valid session token
    • but when I try to pull alerts via “/v1/alerts” I get the invalid session message
    • I can log into all 3 servers via Web and PowerShell
    • All 3 servers are the same version/build (6.0 update 3 patch 1)

    So what is “Get-ZertoAlert” doing in PowerShell that works?

    Doing a GET against /v1/alerts via Python doesn’t?

    Oops, it was a dumb mistake. I had hard-coded one of the servers for debugging. My bad.

The forum ‘Scripting and APIs’ is closed to new topics and replies.