Skip to content

[Bug]: "The requested resource could not be found" on video upload And does not return video info on success #19

Description

@imsujan276

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

  1. There should not be any error like that
  2. On success, it should return video info

Actual result

  1. 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."
  2. 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)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions