Issue Description:
Sometimes, we get Unknown
error from Youtube.
Looking at the logs, we can see several unerlying errors:
on 400 error from Youtube API (which parameters are we missing?)
2022-09-10 20:57:26,240 (INFO) [cghph ID 93][14196] YouTubeService - YouTube share request for file: C:\Users\USer\Videos\Overwolf\Outplayed\League of Legends\League of Legends_09-10-2022_20-34-45-804\League of Legends_09-10-2022_20-56-35-520.mp4
2022-09-10 20:57:26,559 (INFO) [26][45520] VideoFile - Trimming C:\Users\USer\Videos\Overwolf\Outplayed\League of Legends\League of Legends_09-10-2022_20-34-45-804\League of Legends_09-10-2022_20-56-35-520.mp4 from 2034 to 32034
2022-09-10 20:57:26,622 (INFO) [34][44596] VideoFile - Successfully run ffmpeg
2022-09-10 20:57:26,899 (ERROR) [26][45520] <244.63MB> RestApiRequest - Received 400 from REST api
2022-09-10 20:57:26,904 (ERROR) [26][45520] <244.84MB> YouTubeApi - Failed to initiate YouTube upload
2022-09-10 20:57:26,909 (ERROR) [26][45520] <244.84MB> ShareHandlerBase - Failed to upload video to YouTube: C:\Users\USer\Videos\Overwolf\Outplayed\League of Legends\League of Legends_09-10-2022_20-34-45-804\League of Legends_09-10-2022_20-56-35-5201305361089172602880.mp4
on Trim failure
2022-09-10 09:03:28,661 (INFO) [cghph ID 45][19116] YouTubeService - YouTube share request for file: C:\Users\chine\Videos\Overwolf\Outplayed\MultiVersus\MultiVersus_09-09-2022_19-36-53-14\MultiVersus_09-09-2022_20-1-22-732.mp4
2022-09-10 09:03:28,817 (INFO) [75][10516] VideoFile - Trimming C:\Users\chine\Videos\Overwolf\Outplayed\MultiVersus\MultiVersus_09-09-2022_19-36-53-14\MultiVersus_09-09-2022_20-1-22-732.mp4 from 0 to 1373300
2022-09-10 09:03:29,285 (INFO) [UI][13832] NotificationsManager - Showing Notification: Notification Type: ShareUploadStartedNotification | CreationDate: 09/10/2022 09:03:28 | ServiceName: YouTubeService
2022-09-10 09:03:29,448 (ERROR) [38][3616] <273.51MB> VideoFile - Did not complete ffmpeg operation successfully [timeout False '900000']
2022-09-10 09:03:29,448 (WARN) [38][3616] VideoFile - Did not complete ffmpeg operation successfully[exitcode:1]
We would like to get a specific error when these issues occur so we can let our users know what is the problem.
Can you reproduce it (exact steps to reproduce):
No
Impact for my app:
low/medium (100 users daily)
Do you currently have a workaround?
No
User Logs:
https://drive.google.com/file/d/14j7iXIzN_AX-B3GAgfHFrNhrxJpNEF7O/view?usp=sharing (400 issue)
https://drive.google.com/file/d/1d6aPcDj9hGR20SQPXf4r_z7rvPSIO9kx/view?usp=sharing (trim issue)