albertodebortoli/GoldRaccoon

Not able to upload. Unknown Error

Opened this issue · 6 comments

I am getting below error on upload

requestsManager:didFailRequest:withError:
Error Domain=com.albertodebortoli.goldraccoon Code=-1000 "(null)" UserInfo={message=Unknown error!}

I resolved the issue by setting _passiveMode = No in demo project.

How can I set this via Cocopods?

hello @rajan2211 Im facing same issue if you resolved this problem please tell me.

hello @rajan2211 Im facing same issue if you resolved this problem please tell me.

I resolved the issue by setting _passiveMode = No in demo project.

How can I set this via Cocopods?

I fix problem using your sulotion.
and your can set passiveMode using code like

GRListingRequest *request = [self.requestsManager addRequestForListDirectoryAtPath:@"/"];
request.passiveMode = NO;

Hi everyone,

I have the same issue in my swift 5.3 code and tried the sanhue0302 solution, but It doesn't work.

Any idea? Can you help me?

This is my code :

  • (void)uploadFile:(CDVInvokedUrlCommand*)cmd
    {
    self.cmd = cmd;
    NSString* localPath = [cmd.arguments objectAtIndex:0];
    NSString* remotePath = [cmd.arguments objectAtIndex:1];

    if ([localPath length] == 0 || [remotePath length] == 0)
    {
    self.pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"Expected localFile and remoteFile."];
    [self.commandDelegate sendPluginResult:self.pluginResult callbackId:cmd.callbackId];
    }
    else
    {
    GRListingRequest *request = [self.requestsManager addRequestForUploadFileAtLocalPath:localPath toRemotePath:remotePath];
    request.passiveMode = NO;
    [self.requestsManager startProcessingRequests];
    [self.pluginResult setKeepCallbackAsBool:YES];
    }
    }

PS: By the way this issue only occurs when the hostname is 172.x.x.x. Is it possible?

PS: By the way this issue only occurs when the hostname is 172.x.x.x. Is it possible?

I'm not sure about it.
In my case , i use ftp://xx.xx.com/ as host name to create a request manager.