Git Product home page Git Product logo

react-native-ftp-client's People

Contributors

dependabot[bot] avatar ljbatwh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-ftp-client's Issues

Ios:[Error: list error Posix(49) Can't assign requested address]

Hi i'm geting below error:

[Error: list error Posix(49) Can't assign requested address]

const ftpSetup = {
ip_address: 'xxx.xxx.xxx.xxx',
port: 21,
username: 'username',
password: 'password'
},

export const FTPService = {
setupConnect() {
FTP.setup(ftpSetup);
},
FTPServiceList: async (remote_path:string) => {
return await FTP.list(remote_path);
},
}

==============calling==============

try {
FTPService.setupConnect();
const list = await FTPService.FTPServiceList('/path');
console.log(list);
} catch (error) {
console.log(error);
}
[Error: list error Posix(49) Can't assign requested address]

RectNative ver = 0.73
Can someone tell what's the issue?

domain = 6, error = 550, errorMessage = Requested action not taken. File unavailable (e.g., file not found, no access).

My setup working normally on android but iOS got that error.
Error: list error unknown_domain(550) Requested action not taken. File unavailable (e.g., file not found, no access).

xcode log: domain = 6, error = 550, errorMessage = Requested action not taken. File unavailable (e.g., file not found, no access).

const FTPSetup = (ftpHost) => {
  FtpClient.setup({
    ip_address: "194.5x.xxx.xxx",
    port: 21,
    username: 'uxxxxxx.username.online',
    password: 'xxxxxxxx'
  })
}

export const getListFile = async (ftpHost, remote_file_path = '/public_html') => {
  FTPSetup(ftpHost)
  try {
    return await FtpClient.list(remote_file_path)
  } catch (error) {
    console.log(error)
    Alert.alert('Error', error.message)
    return []
  }
}

please help :(

How to install?

I have downloaded the library and put it in node_modules, included project in settings.gradle but when I imported package in mainApplication.java (import com.reactlibrary.ftpclient.RNFtpClientPackage;), I get error package does not exist.

[!] There are multiple dependencies with different sources for RNFtp in Podfile:

I'm trying to install react-native-ftp for my ios app but i'm getting the below error.

here are the steps i follwed,

npm install react-native-ftp --save

react-native link react-native-ftp

cd ios && pod install

[!] There are multiple dependencies with different sources for RNFtp in Podfile:

RNFtp (from ../node_modules/react-native-ftp/ios)
RNFtp (from ../node_modules/react-native-ftp)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.