Always Getting Error: http.client.IncompleteRead: IncompleteRead when trying to list permission for all Google Drive files

48 views
Skip to first unread message

Christian Wijaya

unread,
Mar 16, 2023, 6:12:44 AM3/16/23
to GAM for Google Workspace
Hello everyone,

I have been getting the below error whenever I was trying to list all files' permission in Google Drives and it caused the process to stop:

Traceback (most recent call last):
  File "__init__.py", line 67850, in ProcessGAMCommand
  File "__init__.py", line 49745, in printFileList
  File "__init__.py", line 5225, in yieldGAPIpages
  File "__init__.py", line 5052, in callGAPI
  File "googleapiclient/_helpers.py", line 130, in positional_wrapper
  File "googleapiclient/http.py", line 923, in execute
  File "googleapiclient/http.py", line 191, in _retry_request
  File "__init__.py", line 4162, in wrapped_request_method
  File "__init__.py", line 4182, in request
  File "google_auth_httplib2.py", line 218, in request
  File "httplib2/__init__.py", line 1720, in request
  File "httplib2/__init__.py", line 1440, in _request
  File "httplib2/__init__.py", line 1421, in _conn_request
  File "http/client.py", line 459, in read
  File "http/client.py", line 597, in _read_chunked
http.client.IncompleteRead: IncompleteRead(10 bytes read)

The command I used was: gam all users print filelist allfields permissions todrive

Do you have any ideas why that happened and how to resolve it?
Thank you.

Robert Fine

unread,
Mar 16, 2023, 9:02:37 AM3/16/23
to GAM for Google Workspace
Hi Christian, 

ive tried your command and it works for me. on version 6.50.11.

can you run the command: gam config debug_level 1 gam all users print filelist allfields permissions todrive
and share the output?

i think it might be an scope issue 

Christian Wijaya

unread,
Mar 16, 2023, 9:48:53 AM3/16/23
to google-ap...@googlegroups.com
Hi Robert,

My gam version is 6.51.01, and sorry if I wasn't clear enough before.
The command ran well for a while until it stopped working and reported that error message above.

Nevertheless, I am now trying to run the command you mentioned and will share the output here.

Thank you.

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/2c5e912f-6d58-4ce0-b45a-9b606b189957n%40googlegroups.com.

Robert Hook

unread,
Mar 16, 2023, 9:57:18 AM3/16/23
to google-ap...@googlegroups.com
Unsubscribe 

On Mar 16, 2023, at 9:48 AM, Christian Wijaya <chwi...@gmail.com> wrote:


Reply all
Reply to author
Forward
0 new messages