-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
needs more infoThis issue needs more information from the customer to proceed.This issue needs more information from the customer to proceed.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Environment details
- OS type and version: Ubuntu 18.04
- Python version:
python 3.5 - pip version:
pip 9.0.0 google-api-python-clientversion:1.8.2
Steps to reproduce
- Upload video using resource.videos().insert()
- Reference response
Code example
try:
request = youtube.videos().insert(
part="snippet",
body={
"snippet": {
"categoryId": "22",
"description": "This is a test of uploading videos.",
"title": "Test Video Upload"
}
},
media_body=MediaFileUpload(TEST_VIDEO_LOCAL_PATH, chunksize=-1, resumable=False)
)
response = request.execute()
logger.info("Response from VIDEO UPLOAD: %s", repr(response))
return True
except HttpError as e:
print("Http Error During Upload: %s", repr(e.content))
return FalseStack trace
Response from VIDEO UPLOAD: {'id': 'MC_vt7BjFmk', 'kind': 'youtube#video', 'etag': '"Dn5xIderbhAnUk5TAW0qkFFir0M/Bznl1B0nznSPuGYIdgxeQcUP2Vs"', 'snippet': {'title': 'Test Video Upload', 'publishedAt': '2020-05-07T14:28:55.000Z', 'channelTitle': 'Patrick Hanford', 'localized': {'title': 'Test Video Upload', 'description': 'This is a test of uploading videos.'}, 'description': 'This is a test of uploading videos.', 'categoryId': '22', 'channelId': 'UCZ5AUe-rp3rXKeFS0yx4ZBA', 'thumbnails': {'high': {'height': 360, 'width': 480, 'url': 'https://i.ytimg.com/vi/MC_vt7BjFmk/hqdefault.jpg'}, 'default': {'height': 90, 'width': 120, 'url': 'https://i.ytimg.com/vi/MC_vt7BjFmk/default.jpg'}, 'medium': {'height': 180, 'width': 320, 'url': 'https://i.ytimg.com/vi/MC_vt7BjFmk/mqdefault.jpg'}}, 'liveBroadcastContent': 'none'}}
I'm sure there is another issue here somewhere, but not providing any context is poor developer experience. We've spent hours trying to guess what the issue could be, and we shouldn't have to. Documenting why this type of response occurs would be helpful in debugging.
Metadata
Metadata
Assignees
Labels
needs more infoThis issue needs more information from the customer to proceed.This issue needs more information from the customer to proceed.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.