Aurora push problem with Mac: Can not connect to Jpush Server. Please ensure your Internet connect

Source: Internet
Author: User

Recently, as a result of the project needs, using the Aurora push service, it is configured on the server side, but in the use of the official demo always error: Can not connect to Jpush Server. Please ensure your Internet connect.
caused by:java.net.UnknownHostException:api.jpush.cn but the same as the official example, and the network is no problem, how can report this error.
This is the domain name parsing error, we need to resolve this domain name in our own machine.
Workaround:

1, open the terminal:

Cd/etc

2, VI hosts

Add the Jpush IP and the corresponding hostname here.
3, after the Save exit

At this point, you will be able to send the message smoothly

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.