Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occuredTypeError: Network request failed #68

Open
alpertayfun opened this issue Apr 21, 2021 · 0 comments
Open

Error occuredTypeError: Network request failed #68

alpertayfun opened this issue Apr 21, 2021 · 0 comments

Comments

@alpertayfun
Copy link

Hello,

I've got this messages only on Android side. I've running on iOS devices with no errors. What is that ?

I'm using react-native and expo together. I've just get this error in only Android devices and emulator. I've checked network and other issues.
Internet reachable.
Network reachable.

    const client = new Client('https://api.steemit.com');
      
      const query = {
          tag: '',
          limit: limit,
      };
      client.database
          .getDiscussions("trending", query)
          .then(result => {
              
              //var posts = [];
              result.forEach(post => {
                  const json = JSON.parse(post.json_metadata);
                  const image = json.image ? json.image[0] : '';
                  const title = post.title;
                  const author = post.author;
                  const created = new Date(post.created).toDateString();
                  const last = {json:json,image:image,title:title,author:author,created:created};
                  //posts.push({last});
              });
              //console.log(result);
              this.setState({
                  dataSource: result
              });
            this.setState({isLoading:false});
          })
          .catch(err => {
            console.log('Error occured' + err);
          });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant