Log responce of the Dashboard before start using it at upload script
No-Presubmit: True Bug: webrtc:12162 Change-Id: Ib4a2a29be2b1917f8ea3364fa08e5c7aae8fb65b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/193943 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Andrey Logvin <landrey@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32632}
This commit is contained in:

committed by
Commit Bot

parent
87e99095a7
commit
e850af2f79
@ -95,10 +95,10 @@ def _WaitForUploadConfirmation(url, oauth_token, upload_token, wait_timeout,
|
|||||||
|
|
||||||
response, content = http.request(url + '/uploads' + upload_token,
|
response, content = http.request(url + '/uploads' + upload_token,
|
||||||
method='GET', headers=headers)
|
method='GET', headers=headers)
|
||||||
|
|
||||||
|
print 'Upload state polled. Response: %r.' % content
|
||||||
|
|
||||||
resp_json = json.loads(content)
|
resp_json = json.loads(content)
|
||||||
|
|
||||||
print 'Upload state polled. Response: %s.' % content
|
|
||||||
|
|
||||||
if (response.status != 200 or
|
if (response.status != 200 or
|
||||||
resp_json['state'] == 'COMPLETED' or
|
resp_json['state'] == 'COMPLETED' or
|
||||||
resp_json['state'] == 'FAILED'):
|
resp_json['state'] == 'FAILED'):
|
||||||
|
Reference in New Issue
Block a user