-1 General error Invoke-RestMethod -Uri "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites"
can someone tell me why i receiving a general error when i try to obtain the sites?
PS C:\Users\efrai> Invoke-RestMethod -Uri "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites" -Method Get -Headers $RequestHeaders -WebSession $OmadaSession
errorCode msg
--------- ---
-1 General error.
I am able to call other endpoints successfully but i can't get sites.
PS C:\Users\efrai> Invoke-RestMethod -Uri "${OMADA_URL}/${CONTROLLER_ID}/api/v2/loginStatus" -Method Get -Headers $RequestHeaders -WebSession $OmadaSession
errorCode msg result
--------- --- ------
0 Success. @{login=True}
Thanks a lot in advance.