google drive sdk - backendError 500 (Bug in nextPageToken) -


for of users iterating through list of files started producing error 500 (backenderror). few cases, still.

close investigation showed after requesting list of files strange nextpagetoken returned. here example:

!!|~eaiaggelega6egpg96k5moz_____f_8aap__aad_7qnsfh7iy8rjymndy8blythi0bdoy6w4rz6wvqmc_waa__8a_v_-f_8a_wduo2x-hsjlysniyc7lxsvk0cjrsm7lpbitnrc-qzz_ap_-ejzhasfvha7kvoa7stkaaaaac81gxugbdeaaigsj4yztxbeabaagbg 

this part right here "!!|~" (start of string) causing errors. removing fixed issue.

there not many cases. still, can bug?

update 1.

here code sample using google apis client library php. error reproduced few users. there not lot of chances of reproducing it.

    $client = new google_client( );     // ... setup client      $driveservice = new google_driveservice( $client );     $parameters = array();      try{         do{             $files = $driveservice->files->listfiles( $parameters );             $parameters['pagetoken'] = $files->nextpagetoken;              // ...               } while( $parameters['pagetoken'] );         }     catch( google_serviceexception $exception ) {         // ... handle exception     }    }    


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -