gomobile-ipfs icon indicating copy to clipboard operation
gomobile-ipfs copied to clipboard

When I use files/rm or cp, it report Error "sending request failed"

Open westice007 opened this issue 3 years ago • 0 comments

Asking a question, not reporting a bug

  • [X] This question is not about a bug

Is there an existing issue for this?

  • [X] I have searched the existing issues

Question

do { let res1 = try self.ipfs?.newRequest("files/rm") .with(argument: mfsPath) .send() print("exeRmCmd files/rm res1: ", res1) return res1 }catch let error { print("Error: exeRmCmd Rm: (error) mfsPath:(mfsPath)") }

the msfPath is Exist , can be readed use files/stat but files/rm cp catch Error: Error Domain=IPFS.RequestBuilder Code=6 "sending request failed" UserInfo={NSLocalizedDescription=sending request failed, NSLocalizedFailureReason=The operation couldn’t be completed. (Foundation._GenericObjCError error 0.)}

Context

How to solve this problem?

westice007 avatar Aug 07 '22 14:08 westice007