Solution for Error 500 prompted by Alibaba greater than SMS interface, Alibaba 500

Source: Internet
Author: User

Solution for Error 500 prompted by Alibaba greater than SMS interface, Alibaba 500

During the invitation to join the page for the company's projects in the past two days, You Need To debug the SMS interface that is later than Alibaba. This interface is also useful in other areas of the project. The boss has already written this interface, so I took it and used it directly. However, no matter how the debugging server is, the error 500 [no user information available] is always returned. I found a lot of information on the Internet, but none of them found the relevant information, because I personally accessed this interface when I was working on another project, and it was usable at that time, so I first tried the bigger interface of that project locally and found that it was normal, so I moved the code of the project directly, but the code is usually unavailable in the current project. It is really a headache, and I am tired of calling it, so I thought about skipping this interface to simulate the interface for Data Writing. First, I found that the data written to the database is garbled in Chinese, we found that the encoding for the editing page of the editor [phpstorm] was actually GBK. After switching the encoding back to utf8, we found that it was automatically better than the interface. I really don't know how to say it to myself, so a good programming habit is really too important. If I have the habit of checking the coding of the editing window when opening the editor, you can save debugging time for the entire day!

Here, we also follow the common ideas for returning Error 500 when Alibaba is greater than the interface server:

1. Check whether the encoding in the editing window is consistent with the encoding required by the interface. [This is a very easy to ignore]

2. Check whether the interface supports local debugging. (For example, some interfaces do not support local debugging]

3. Check whether the parameters required by the interface correspond

4. Check whether the parameters sent by log tracing to the interface server are correct.

5. If the above four items fail to be checked, please go to shangxiang and ask God to bless you ......

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.