MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Working during 1/3rd of the refreshes...

Last post 07-29-2008 6:52 AM by Michael. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-29-2008 6:52 AM

    Working during 1/3rd of the refreshes...

    I managed to get the Offical PHP libarary working during 1/3rd of the times I refresh the page...

     What gives??? Heres what i get when all goes well, and far below is what happens when all goes bad:

     

    /* FIRST THE PRINT_F */

    Array ( [appid] => 111110 [country] => US [installState] => 1 [lang] => en [oauth_consumer_key] => http://designermichael.com/buggywars [oauth_nonce] => 633529360729835733 [oauth_signature] => tGdeJtd0PTdVssS9dvcFaDKrq84= [oauth_signature_method] => HMAC-SHA1 [oauth_timestamp] => 1217339272 [oauth_version] => 1.0 [opensocial_owner_id] => 277245084 [opensocial_token] => PICoF9aS2DX2jyHFtII0G1iuKfGvSBESOqMr7qNK83ftyeo9Ska9Zfn9I7AGo6U1dBA94FjTOOEk/tFfEtTU45zOcJkckUBCy0mg2TvuXD0= [opensocial_viewer_id] => 277245084 [ownerId] => 277245084 [ptoString] => COMMENTS,BLOG,BULLETINS,PROFILE,SEND_MESSAGE,SHARE_APP [PHPSESSID] => guuk39os93vii19e5hd9jng7v3 )

     /* NEXT THE TEST GETS */

    get_profilearray(8) { ["userid"]=> string(9) "277245084" ["uri"]=> string(46) "http://api.msappspace.com/opensocial/v1/VIEWER" ["displayname"]=> string(7) "Michael" ["weburi"]=>...........

    ETC...

     

     

    Now when it doesn't work... This happens!?! 2/3rds of the time when I hit refresh...

    /* FIRST THE PRINT OF THE REQUEST */

    Array ( [appid] => 111110 [country] => US [installState] => 1 [lang] => en [oauth_consumer_key] => http://designermichael.com/buggywars [oauth_nonce] => 633529363235109711 [oauth_signature] => rkLeJcsa5rA2bdC31FPvbGCTXjw= [oauth_signature_method] => HMAC-SHA1 [oauth_timestamp] => 1217339523 [oauth_version] => 1.0 [opensocial_owner_id] => 277245084 [opensocial_token] => WG5NmHQMOVOJ655MnqH/SOAe6cXkf6F5KpIdUyr l5t7iAsfDOFhdjrt9saR fRce53BcjQdXmSrr ScN3jkV/3j/QXv/HONzeraxt8xbQM= [opensocial_viewer_id] => 277245084 [ownerId] => 277245084 [ptoString] => COMMENTS,BLOG,BULLETINS,PROFILE,SEND_MESSAGE,SHARE_APP [PHPSESSID] => guuk39os93vii19e5hd9jng7v3 )

     

     /* THE FATAL ERROR */

     Fatal error: Uncaught exception 'Exception' with message '400 <h1>Bad Request</h1>' in /www/buggywars/myspace/client/BaseAPI.php:63 Stack trace: #0 /www/buggywars/myspace/client/MyOpenSpaceAPI.php(151): BaseAPI->_do_get('http://api.msap...', NULL) #1 /www/buggywars/myspace/client/MyOpenSpaceAPI.php(43): MyOpenSpaceAPI->do_get('VIEWER', 'profile', NULL) #2 /www/buggywars/myspace/testGets.php(23): MyOpenSpaceAPI->get_profile() #3 /www/buggywars/myspace/index.php(16): include_once('/www/buggywars/...') #4 {main} thrown in /www/buggywars/myspace/client/BaseAPI.php on line 63

     

     

     

    /* I tried the other Test gets... Digital signature has expired??? */

    Fatal error: Uncaught exception 'Exception' with message '401 <error xmlns="api-v1.myspace.com"><statuscode>401</statuscode><statusdescription>Digital signature has expired.</statusdescription></error>' in /www/buggywars/myspace/client/BaseAPI.php:63 Stack trace: #0 /www/buggywars/myspace/client/MySpaceAPI.php(171): BaseAPI->_do_get('http://api.mysp...', NULL) #1 /www/buggywars/myspace/client/MySpaceAPI.php(32): MySpaceAPI->do_get('users/277245084', NULL) #2 /www/buggywars/myspace/testGets2.php(12): MySpaceAPI->get_user(277245084) #3 /www/buggywars/myspace/index.php(20): include_once('/www/buggywars/...') #4 {main} thrown in /www/buggywars/myspace/client/BaseAPI.php on line 63

Page 1 of 1 (1 items)