Google_Service_Exception

{
"error": {
"code": 404,
"message": "File not found: 1AMB7ds-vwH9hbyPSu-7zK_Tfmf5DpsUm.",
"errors": [
{
"message": "File not found: 1AMB7ds-vwH9hbyPSu-7zK_Tfmf5DpsUm.",
"domain": "global",
"reason": "notFound",
"location": "fileId",
"locationType": "parameter"
}
]
}
}

/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Http/REST.php(118)

106       ResponseInterface $response,
107       RequestInterface $request = null,
108       $expectedClass = null
109   ) {
110     $code = $response->getStatusCode();
111 
112     // retry strategy
113     if (intVal($code) >= 400) {
114       // if we errored out, it should be safe to grab the response body
115       $body = (string) $response->getBody();
116 
117       // Check if we received errors, and add those to the Exception for convenience
118       throw new Google_Service_Exception($body, $code, null, self::getResponseErrors($body));
119     }
120 
121     // Ensure we only pull the entire body into memory if the request is not
122     // of media type
123     $body = self::decodeBody($response, $request);
124 
125     if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) {
126       $json = json_decode($body, true);
127 
128       return new $expectedClass($json);
129     }
130 

Stack Trace

#0
+
 /srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Http/REST.php(94): Google_Http_REST::decodeHttpResponse(GuzzleHttp\Psr7\Response, GuzzleHttp\Psr7\Request, "Google_Service_Drive_DriveFile")
89             $response->getReasonPhrase()
90         );
91       }
92     }
93 
94     return self::decodeHttpResponse($response, $request, $expectedClass);
95   }
96 
97   /**
98    * Decode an HTTP Response.
99    * @static
#1
+
 /srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Task/Runner.php(176): Google_Http_REST::doExecute(GuzzleHttp\Client, GuzzleHttp\Psr7\Request, "Google_Service_Drive_DriveFile")
171    */
172   public function run()
173   {
174     while ($this->attempt()) {
175       try {
176         return call_user_func_array($this->action, $this->arguments);
177       } catch (Google_Service_Exception $exception) {
178         $allowedRetries = $this->allowedRetries(
179             $exception->getCode(),
180             $exception->getErrors()
181         );
#2
+
 /srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Http/REST.php(58): Google_Task_Runner->run()
53 
54     if (null !== $retryMap) {
55       $runner->setRetryMap($retryMap);
56     }
57 
58     return $runner->run();
59   }
60 
61   /**
62    * Executes a Psr\Http\Message\RequestInterface
63    *
2024-03-28 19:54:00 Apache Yii Framework/1.1.21