Invalidstorage.notfound when uploading video in alicloud VOD

Use Java SDK to upload video files according to official documents

  In the end, it will report an error

InvalidStorage.NotFound
The StorageLocation does not exist.  

View the cause of the error in the official document

If the set storage address does not exist, log in to the on demand console and select configuration management  & gt;   Media asset management and allocation  & gt;   Storage management   Check and confirm in.

  But I will still report an error after setting the default storage address (the default code is Shanghai)

The solution here is

Manually set in the code and then upload it

The above code is the local upload video, other ways of streaming and other solutions are the same.


Read More: