php - Google Cloud Messaging for Chrome Error 500 -


so i'm trying send message chrome extension through gcm, using php.

$data = json_encode(array(         'channelid' => 'channel id here',         'subchannelid' => '0',         'payload'=>'test'     ));      $ch = curl_init();     $curlconfig = array(         curlopt_url            => "https://www.googleapis.com/gcm_for_chrome/v1/messages",         curlopt_post           => true,         curlopt_returntransfer => true,         curlopt_postfields     => $data,         curlopt_ssl_verifypeer => false,         curlopt_httpheader     => array(             'authorization: bearer ' . $access_token,             'content-type: application/json'         )     );     curl_setopt_array($ch, $curlconfig);     $result = curl_exec($ch); 

each request returns { "error": { "code": 500, "message": null } }. thanks.

500 http error code internal error.

sending google cloud message chrome google oauthplayground website returns me:

http/1.1 500 internal server error content-length: 52 x-xss-protection: 1; mode=block x-content-type-options: nosniff x-google-cache-control: remote-fetch -content-encoding: gzip server: gse reason: internal server error via: http/1.1 gwa cache-control: private, max-age=0 date: wed, 15 may 2013 07:01:40 gmt x-frame-options: sameorigin content-type: application/json; charset=utf-8 expires: wed, 15 may 2013 07:01:40 gmt { "error": { "code": 500, "message": null } }

according google's cloud message chrome docs:

an internal error has occurred. indicates went wrong on google server side (for example, backend not working or errors in http post such missing access token).

essentially there's wrong on google's side of things. considering google i/o going start in few hours assume they're making changes.

try checking again in few hours.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -