API call to NX Server via NX Cloud
AnsweredHi there,
I am following this guide: https://support.networkoptix.com/hc/en-us/articles/360016266074-Cloud-API-Route-API-Calls-via-Nx-Cloud to remote API access via NX Cloud.
However, I am getting this error response when calling https://xxxx.relay.vmsproxy.com/rest/v2/login/sessions endpoint (method POST)
```
{
"error": "4",
"errorId": "forbidden",
"errorString": "This authorization method is forbidden. Please contact your system administrator."
}
```
I think it means I need to enable the Proxy somehow. I am an administrator, btw. So, can you guys guide me?
Thanks,
-
Hello,
It looks like you're using Digest authentication when the account having Bearer authorization or vice versa,
bearer authorization with the account having Digest authorization.
Check the auth method in your code and in the account settings.
In addition, since you're requesting API via a cloud relay, make sure you retain authorization headers.
For more details about it, please read this thread
Please sign in to leave a comment.
Comments
2 comments