How to check sign error when developing Android Tencent Weibo with a real machine

Source: Internet
Author: User

Everything works normally when using a simulator;

When using a real machine, {"data": NULL, "errcode":-103, "MSG": "check sign error", "RET": 3} returned values always appear.

Later I considered whether it was an HTTPS problem, but I found that all of them were connected over HTTP.

What are the differences between a real machine and a simulator?

It suddenly occurred that there was a timestamp in the parameter and the local time was to be read, and the difference between the time and the server cannot be greater than 8 minutes.

So I checked the Android phone and found that the time of the phone was automatically set by the network,

And the time zone is GMT + 0.

My God, the difference is 8 hours.

Change it back.

So everything is normal.

We hope that the returned values of the API can be clear, saving our developers time.

Related Article

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.