google api php client - Any way to get more details about "internal failure" errors reading gmail from googleapi? -


i've run lot of cases google's api yields less-than-descriptive error message.

now i'm getting this:

google_service_exception object (     [errors:protected] =>     [message:protected] => {  "error": "internal_failure",  "error_description": "backend error" } 

i'm reading batches of 100 messages @ time php googleapi client listusersmessages function call.

interestingly, notice if ask batch that's not round mod 100 number, result list rounded 100. example ask batch size of 156 (just test) , 100. that's side note. real problem works fine, until large number, 8500, or 15000, , internal_failure error.

one thing did notice, exception object php client fantastically huge. printed log file, it's 272162 lines long. there's lot of repetition. there's many iterations of 85 array entries this...

 [sorted:guzzlehttp\event\emitter:private] => array       (         [before] => array           (              [0] => array                 (                   [0] => guzzlehttp\subscriber\prepare object                       (                       )                   [1] => onbefore                 )              [1] => array ... goes  85 , repeats on again. 

i'm thinking there's object needs reset somewhere because leaking in api , after 85 calls, on google end blows up.

am missing cleanup function call somewhere?


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -