Why Does an Error Occur When I Query the Application ID of a Completed or Non-existing Application Using the RESTful APIs?
Question
Why does an error occur when I query the application ID of a completed or non-existing application using the RESTful APIs?
Answer
You can access the RESTful API available at https://<SS_REST_SERVER>/ws/v1/sscheduler/applications/{application_id} to submit a request for viewing the application ID.
The Superior scheduler only stores the application IDs of running applications. If you request to view the application ID of a completed or non-existing application, the 404 error is returned by the server. When Chrome accesses the RESTful API, it includes an Accept header that prioritizes the application/xml media type. If the server is not properly configured to generate or handle XML responses, this may result in processing failures. Consequently, you may encounter an error page displaying the message "Error Occurred". When Internet Explorer accesses the RESTful API, it includes an Accept header that prioritizes the application/json media type. In response, the server correctly returns a 404 Not Found status.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot