Version
1.2.3
Environment that reproduces the issue
Device: Pixel 5 mobile and emulator
Flutter version: 3.22.1
Is it reproducible in the example application?
Not tested
Reproduction steps
- select a video
- upload it using "ApiVideoUploader.uploadPart" or "ApiVideoUploader.upload"
- script used to upload video
ApiVideoUploader.setApiKey('API_KEY');
ApiVideoUploader.setChunkSize(1024 * 1024 * 5); // 5mb chunk size
final session = ApiVideoUploader.createProgressiveUploadSession(
_generateRandomString(10),
);
final video = await session.uploadPart(
videoPath,
onProgress: (progress) {
EasyLoad.progress(
percentage: progress,
message: 'Uploading ${(progress * 100).toStringAsFixed(2)}%',
);
},
);
print(video)
Expected result
- There should not be any error like that
- On success, it should return video info
Actual result
- on success, you see an error message in console "Error: PlatformException(java.lang.UnsupportedOperationException, Not Found: The requested resource could not be found., java.lang.UnsupportedOperationException: Not Found: The requested resource could not be found."
- I do not get the uploaded video info
Additional context
No response
Relevant logs output
Full error message:
[log] LOG => _uplaodVideoToAPiVideo() Error: PlatformException(java.lang.UnsupportedOperationException, Not Found: The requested resource could not be found., java.lang.UnsupportedOperationException: Not Found: The requested resource could not be found.
at video.api.flutter.uploader.UploaderModuleImpl$uploadPartAndObserve$4.invoke(UploaderModuleImpl.kt:346)
at video.api.flutter.uploader.UploaderModuleImpl$uploadPartAndObserve$4.invoke(UploaderModuleImpl.kt:333)
at video.api.flutter.uploader.utils.LiveDataExtensionsKt$observeTillItFinishes$4.onChanged(LiveDataExtensions.kt:36)
at video.api.flutter.uploader.utils.LiveDataExtensionsKt$observeTillItFinishes$4.onChanged(LiveDataExtensions.kt:20)
at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
at androidx.lifecycle.LiveData$1.run(LiveData.java:93)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
, null)
Version
1.2.3
Environment that reproduces the issue
Device: Pixel 5 mobile and emulator
Flutter version: 3.22.1
Is it reproducible in the example application?
Not tested
Reproduction steps
Expected result
Actual result
Additional context
No response
Relevant logs output