In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How to deal with the returned results after the interface call? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Return the result
The returned results are mainly in XML and JSON formats. The default is XML. You can specify the common request parameter Format to change the format of the returned results. For ease of viewing and beauty, the return examples of API documents are treated with line wrapping and indentation, and there is no line wrapping and indentation processing for the actual returned results.
Normal return example
When the API is called successfully, the API return parameters and request ID will be returned. We call this a normal return. The HTTP status code is 2xx.
XML example
4C467B38-3910-447D-87BC-AC049166F216
JSON example
{"RequestId": "4C467B38-3910-447D-87BC-AC049166F216" / * return result data * /}
Exception return example
After an error occurs in the API call, an error code, an error message and a request ID will be returned. This is called an exception return. The HTTP status code is 4xx or 5xx.
You can troubleshoot errors based on the interface error code, the common error code and the API error center. When you are unable to troubleshoot the error, you can submit a ticket to contact us and indicate the service node HostId and RequestId in the ticket.
XML example
540CFF28-407A-40B5-B6A5-74Bxxxxxxxxx ecs.aliyuncs.com MissingParameter.CommandId The input parameter "CommandId" that is mandatory for processing this request is not supplied.
JSON example
{"RequestId": "540CFF28-407A-40B5-B6A5-74Bxxxxxxxxx", / * request ID * / "HostId": "ecs.aliyuncs.com", / * service node * / "Code": "MissingParameter.CommandId", / * error code * / "Message": "The input parameter" CommandId "that is mandatory for processing this request is not supplied." / * error message * /}
Common error code
This is the answer to the question on how to deal with the returned results after the API call. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.