使用以下URL的请求。 *将“ domain.com”替换为您的gsuite域。
https://www.googleapis.com/admin/directory/v1/groups/ac-c.ou_n-t_16f30a06336@domain.com/members?fields=members/type,members/email,members/role,nextPageToken&maxResults=200&prettyPrint=false&roles=OWNER
https://www.googleapis.com/admin/directory/v1/groups/ac-c.ou_n-t_16f30a06336@domain.com/members?fields=members/type,members/email,members/role,nextPageToken&maxResults=200&prettyPrint=false&roles=MEMBER
https://www.googleapis.com/admin/directory/v1/groups/ac-c.ou_n-t_16f30a06334@domain.com/members?fields=members/type,members/email,members/role,nextPageToken&maxResults=200&prettyPrint=false&roles=OWNER
https://www.googleapis.com/admin/directory/v1/groups/ac-c.ou_n-t_16f30a06334@domain.com/members?fields=members/type,members/email,members/role,nextPageToken&maxResults=200&prettyPrint=false&roles=MEMBER
https://www.googleapis.com/admin/directory/v1/groups/ac-c.ou_n-t_16f30a06330@domain.com/members?fields=members/type,members/email,members/role,nextPageToken&maxResults=200&prettyPrint=false&roles=OWNER
https://www.googleapis.com/admin/directory/v1/groups/ac-c.ou_n-t_16f309c3412@domain.com/members?fields=members/type,members/email,members/role,nextPageToken&maxResults=200&prettyPrint=false&roles=OWNER
当交替拥有所有者和没有成员的组成员时,更可能发生此事件。 一些REST客户端尝试解析正文。 因此,它成为一个错误并且很麻烦。
通常的请求/响应
GET /admin/directory/v1/groups/ac-c.ou_n-t_16f30a06336@domain.com/members?fields=members/type,members/email,members/role,nextPageToken&maxResults=200&prettyPrint=false&roles=OWNER HTTP/1.1
Host: www.googleapis.com
Content-length: 0
Authorization: Bearer beara
HTTP/1.1 200 OK
Content-length: 2
X-xss-protection: 1; mode=block
Content-location: https://www.googleapis.com/admin/directory/v1/groups/ac-c.ou_n-t_16f30a06336@domain.com/members?fields=members/type,members/email,members/role,nextPageToken&maxResults=200&prettyPrint=false&roles=OWNER
X-content-type-options: nosniff
Transfer-encoding: chunked
Expires: Thu, 26 Dec 2019 02:26:23 GMT
Vary: Origin, X-Origin
Server: GSE
Etag: "xW2YlxjdVEsAJNu_Hp5Dnespo8s/HMFwD2wLX237BRmKZQUJYB5ZE7U"
Cache-control: private, max-age=0, must-revalidate, no-transform
Date: Thu, 26 Dec 2019 02:26:23 GMT
X-frame-options: SAMEORIGIN
Alt-svc: quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000
Content-type: application/json; charset=UTF-8
-content-encoding: gzip
{}
意外的反应
GET /admin/directory/v1/groups/ac-c.ou_n-t_16f30a06334@domain.com/members?fields=members/type,members/email,members/role,nextPageToken&maxResults=200&prettyPrint=false&roles=OWNER HTTP/1.1
Host: www.googleapis.com
Content-length: 0
Authorization: Bearer beara
HTTP/1.1 204 No Content
Content-length: 0
X-xss-protection: 0
X-content-type-options: nosniff
Vary: Origin, X-Origin, Referer
Server: ESF
Etag: "MiyCzqTTHAT4o-bfHCteagJNIb0h9mrrv2lNyYYkGw0/HMFwD2wLX237BRmKZQUJYB5ZE7U"
Date: Tue, 24 Dec 2019 07:31:51 GMT
X-frame-options: SAMEORIGIN
Alt-svc: quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000
Content-type: application/json; charset=UTF-8