-1 General error Invoke-RestMethod -Uri "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites"

-1 General error Invoke-RestMethod -Uri "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites"

-1 General error Invoke-RestMethod -Uri "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites"
-1 General error Invoke-RestMethod -Uri "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites"
2024-07-03 20:31:09
Model: OC200  
Hardware Version: V5
Firmware Version:

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.

  0      
  0      
#1
Options
1 Reply
Re: -1 General error Invoke-RestMethod -Uri "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites"
2024-07-04 06:45:05

Hi  @Efraindeloa 

 

What's the hardware version of your OC200? V1 or V2?

Can you show a screenshot of the error message?

When did this issue first happen?

  0  
  0  
#2
Options