Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

API saveEventRule not creating new event rule in the system

Answered

Comments

6 comments

  • Wendy Chuang
    • Network Optix team

    Hello @...,

    The API payload looks correctly and the rule could be created on my test server.
    Based on your description, the HTTP status code is 307 Temporary Redirect.
    It might be caused by the URI or network environment.

    Could you please collect the Wireshark packet when you calling the API and share it with us?
    You may find out the instruction here to capture the packet file. 

    Thank you.

    0
  • Andrey Terentyev
    • Network Optix team

    Hello Deep,

    What version of Nx Witness are you using?

    Could you share, please, the full URL of your request of the full code you request with?

    0
  • Permanently deleted user

    Hi Andre

     

    This issue is beacuse of  VMS URL I check this on get API and my VMS proxy URL got change from "relay-ny.vmsproxy.com" to "relay-la.vmsproxy.com". And this issue not showing now can you tell why this URL got change.

    0
  • Permanently deleted user

    URL is chosen dynamically between several servers based on availability and optimal connection

    0
  • Permanently deleted user

    So if in future if URL change again then I will get the same error how can we avoid this in future.

    0
  • Anton Babinov
    • Network Optix team

    When responding with status code 307 "Temporary redirect", Cloud sends you 'Location' header with the URL you should use for your request. This is how the Cloud handles load/geo balancing for incoming connections. This shouldn't be considered as an error, it's part of normal communication flow between API Client -> Cloud API Relay -> VMS server.
    I would suggest implementing a separate handler for 307 responses in your HTTP client. Upon receiving HTTP status code 307, the HTTP client should repeat the request without changing the request method to the URL, specified in the Location header of the server's response.

    0

Please sign in to leave a comment.