WeChat public number development call JS-SDK Report: config: invalid url domain error troubleshooting, js-sdkinvalid

Source: Internet
Author: User
Tags sha1 encryption

Public number development call JS-SDK reports: config: invalid url domain error troubleshooting, js-sdkinvalid

1. Check whether the following parameters are correct.

AppId: sAppId, // required. It is the unique identifier of the public account.

Timestamp: sTimestamp, // required. The time stamp for generating the signature.

NonceStr: sNonceStr, // required. A Random signature string is generated.

Signature: sSignature, // required, signature

 

2. Check whether the signature encryption method is correct. (I tried this. I did not know SHA1 encryption before, so I found an encryption method on the Internet. Later I learned that the encryption result of the algorithm found on the internet is incorrect. Even worse, the encryption result of this algorithm is the same as that of the correct one .)

3. If all parameters are correct, an error is returned. Check the security domain name configuration of the JS interface of the public account. There cannot be a prefix of http (s. There cannot be a port number. All callback addresses only support port 80.

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.