2021年4月24日星期六

Flutter: Firebase Firestore giving "No object exists at the desired reference." on delete

I am trying to delete a file like so:

Reference s =_storage.ref("some full url");    print(s.fullPath);    //delete from storage  s.delete();  

But I wlaways get:

[VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: [firebase_storage/object-not-found] No object exists at the desired reference. #0 MethodChannelReference.delete (package:firebase_storage_platform_interface/src/method_channel/method_channel_reference.dart:35:7)

It worked previously, but I recently updated firebase storage to 8.0.4. When I print the full path of the reference I get the URL link that opens up to the photo. Flutter doctor checks out. Does anyone have a solution?

https://stackoverflow.com/questions/67249635/flutter-firebase-firestore-giving-no-object-exists-at-the-desired-reference April 25, 2021 at 11:59AM

没有评论:

发表评论