Vimeo Upload API - “Invalid state” error trying to delete the ticket

☆樱花仙子☆ 提交于 2019-12-02 04:22:37

Based on this comment, I solved the problem changing the upload Retrofit method to not use Multipart!

Now the upload to Vimeo is completed, successfully deleting the upload ticket at the end!

Old one:

@Multipart 
@Headers("Content-Type: video/mp4") 
@PUT 
Call<Object> UPLOAD(@Header("Authorization") String authHeader,
                    @Url String uri,
                    @Header("Content-Length") String contentLenght,
                    @Part("file") RequestBody body);

New one:

@Headers("Content-Type: video/mp4")
@PUT
Call<Object> UPLOAD(@Header("Authorization") String authHeader,
                    @Url String uri,
                    @Header("Content-Length") String contentLenght,
                    @Body RequestBody body);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!