I am using this sample application for uploading a video on to YouTube. Initially I can able to upload the videos successfully without any issue, but after few days suddenly I have been facing the below error.
https://github.com/youtube/api-samples/tree/master/java
After completing upload, when I check the video in the Videos list of my channel, there it is showing an error(Upload failed: Can't process file) like below
The class I am using is
And while executing, the messages in the console are as in the below.
Jul 15, 2017 2:02:59 PM com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: unable to change permissions for everybody: C:\Users\Krishna\.oauth-credentials
Jul 15, 2017 2:02:59 PM com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: unable to change permissions for owner: C:\Users\Krishna\.oauth-credentials
is is not empty
Initiation Started
Initiation Completed
Upload in progress
Upload percentage: 10485760
Upload Completed!
================== Returned Video ==================
- Id: wYB8OfEe9jU
- Title: ex
- Tags: [video, file]
- Privacy Status: public
- Video Count: 0
