D
D
Deno952016-03-05 14:19:52
PHP
Deno95, 2016-03-05 14:19:52

Why error in PHP Quickstart (Drive REST API)?

HP Fatal error: Uncaught exception 'Google_Exception' with message '(list) unknown parameter: 'pageSize'' in /var/www/test0604/google_test/vendor/google/apiclient/src/Google/Service/Resource.php:151
Stack trace:
#0 /var/www/test0604/google_test/vendor/google/apiclient/src/Google/Service/Drive.php(1872): Google_Service_Resource->call('list', Array, 'Google_Service_...')
#1 /var/www/test0604/google_test/quickstart.php(81): Google_Service_Drive_Files_Resource->listFiles(Array)
#2 {main}
thrown in /var/www/test0604/google_test/vendor/google/apiclient/src/Google /Service/Resource.php on line 151

All things according to the instructions as here https://developers.google.com/drive/...
When you run the script, it gives an error

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Deno95, 2016-05-21
@Deno95

The error occurs because the application was not correctly automated.

A
Alexander, 2016-03-05
@misantron

You can try to start by wrapping the executable code in try / catch and look at the message of the exception that will be caught, from which you can already begin to understand it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question