Skip to content

Possible Unhandled Promise Rejection (id: 0): Error: Failed to connect to localhost/127.0.0.1:8888 #4

Open

Description

@vgagaleski

I am not able to connect to my local EOS node, I am getting failed to connect error. I am running EOS on docker Ubuntu described here: https://developers.eos.io/eosio-nodeos/docs/docker-quickstart

InternalScrollViewType.js:22 Possible Unhandled Promise Rejection (id: 0):
Error: Failed to connect to localhost/127.0.0.1:8888
Error: Failed to connect to localhost/127.0.0.1:8888
at createErrorFromErrorData (blob:http://localhost:8081/367662d7-8f09-4c69-955a-0ae11320b34a:2108:17)
at blob:http://localhost:8081/367662d7-8f09-4c69-955a-0ae11320b34a:2060:27
at MessageQueue.__invokeCallback (blob:http://localhost:8081/367662d7-8f09-4c69-955a-0ae11320b34a:2627:18)
at blob:http://localhost:8081/367662d7-8f09-4c69-955a-0ae11320b34a:2358:18
at MessageQueue.__guard (blob:http://localhost:8081/367662d7-8f09-4c69-955a-0ae11320b34a:2531:13)
at MessageQueue.invokeCallbackAndReturnFlushedQueue (blob:http://localhost:8081/367662d7-8f09-4c69-955a-0ae11320b34a:2357:14)
at http://localhost:8081/debugger-ui/debuggerWorker.js:80:58

My code looks like the given example:

 console.log('In function...'); 

 ReactNativeEos.setUrl('http', 'localhost', 8888);

    actionData = {
      "from": "user1",
      "to": "user2",
      "quantity": "10.0000 TOK",
      "memo": "fast?"
    }
    ReactNativeEos.pushAction('eosio.token','transfer', JSON.stringify(actionData),'user1','active',
    '5KAgVzQrY8qzqS7rfzxmjWhaHUSQgn6DpruaqopWEqUJEz7Wb1d');

I was also getting the #2 error when I log the pushAction response. I solved it by removing the logging, but I still get Failed to connect error. Any help ?

Package.json:

  "name": "EosConnection",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.8.3",
    "react-native": "0.59.1",
    "react-native-eos": "^1.0.4"
  },
  "devDependencies": {
    "@babel/core": "7.3.4",
    "@babel/runtime": "7.3.4",
    "babel-jest": "24.5.0",
    "jest": "24.5.0",
    "metro-react-native-babel-preset": "0.53.1",
    "react-test-renderer": "16.8.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions