GCMを介して、サーバーからAndroidフォンにメッセージをhttp投稿しようとしているときに
次のエラーが発生します。
{"collapse_key":"update","registration_ids":["the reg I got from the phone"],"delay_while_idle":true,"data":{"info":"data_changed"}}, response is: $VAR1 = bless( {
'_content' => 'Can\'t connect to android.googleapis.com:443 (Network is unreachable)
LWP::Protocol::https::Socket: connect: Network is unreachable at /usr/local/share/perl5/LWP/Protocol/http.pm line 51.
',
'_rc' => 500,
'_headers' => bless( {
'client-warning' => 'Internal response',
'client-date' => 'Sun, 22 Sep 2013 18:23:10 GMT',
'content-type' => 'text/plain',
'::std_case' => {
'client-warning' => 'Client-Warning',
'client-date' => 'Client-Date'
}
}, 'HTTP::Headers' ),
'_msg' => 'Can\'t connect to android.googleapis.com:443 (Network is unreachable)',
'_request' => bless( {
'_content' => '{"collapse_key":"update","registration_ids":["the reg I got from the phone"],"delay_while_idle":true,"data":{"info":"data_changed"}}',
'_uri' => bless( do{\(my $o = 'https://android.googleapis.com/gcm/send')}, 'URI::https' ),
'_headers' => bless( {
'user-agent' => 'libwww-perl/6.05',
'content-type' => 'application/json; charset=UTF-8',
'content-length' => 266,
'authorization' => 'key=my api key'
}, 'HTTP::Headers' ),
'_method' => 'POST'
}, 'HTTP::Request' )
}, 'HTTP::Response' );
サーバー側でperlを使用していますが、これは単純なhttp投稿リクエストであるため、この質問に影響を与えるとは思われません。働く
なぜこれが起こるのか誰か知っていますか?