Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

videoJSON must be a object, so it need a default value {}, not undefined, or will get TypeError. #43

Closed
weizhiqimail opened this issue Oct 4, 2021 · 3 comments · Fixed by #47

Comments

@weizhiqimail
Copy link
Contributor

async function uploadVideo (videoJSON) {

@fawazahmed0
Copy link
Owner

You should pass an object when calling upload function, with path of video, title of video & description of video.

upload (credentials, [{ path: 'video.mp4', title: 'title 1', description: 'description 1' }]).then(console.log)

@weizhiqimail
Copy link
Contributor Author

I can understand, but I personally feel that this error message should be verified by the tool and the relevant action error message, not js error, like throw a please pass upload's second param.

@fawazahmed0
Copy link
Owner

Hi @weizhiqimail , you can send a PR, I will be happy to merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants