Coder Social home page Coder Social logo

Comments (6)

yepp4you avatar yepp4you commented on May 18, 2024

I have already registered below.
https://github.com/EOSEssentials/Scatter/issues/51

from scatterwebextension.

mlockett42 avatar mlockett42 commented on May 18, 2024

I am not able to connect to the liberty block bp while using eos-js. Maybe https just doesn't work yet? I am able to connect with curl however so I am not sure what the difference is

var options = {
  httpEndpoint: 'https://bp.libertyblock.io:8890',
  debug: false,
  fetchConfiguration: {},
}

eos = Eos.Localnet(options) // testnet at eos.io

eos.getInfo({}).then(
.....

Gives

api error =>  https://bp.libertyblock.io:8890/v1/chain/get_info {}
{ FetchError: request to https://bp.libertyblock.io:8890/v1/chain/get_info failed, reason: socket hang up
    at ClientRequest.<anonymous> (/opt/project/eos-voter/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at TLSSocket.socketErrorListener (_http_client.js:387:9)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  name: 'FetchError',
  message: 'request to https://bp.libertyblock.io:8890/v1/chain/get_info failed, reason: socket hang up',
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET' }
{ FetchError: request to https://bp.libertyblock.io:8890/v1/chain/get_info failed, reason: socket hang up
    at ClientRequest.<anonymous> (/opt/project/eos-voter/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at TLSSocket.socketErrorListener (_http_client.js:387:9)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  name: 'FetchError',
  message: 'request to https://bp.libertyblock.io:8890/v1/chain/get_info failed, reason: socket hang up',
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET' }
Error result= { FetchError: request to https://bp.libertyblock.io:8890/v1/chain/get_info failed, reason: socket hang up
    at ClientRequest.<anonymous> (/opt/project/eos-voter/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at TLSSocket.socketErrorListener (_http_client.js:387:9)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  name: 'FetchError',
  message: 'request to https://bp.libertyblock.io:8890/v1/chain/get_info failed, reason: socket hang up',
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET' }

from scatterwebextension.

k26dr avatar k26dr commented on May 18, 2024

Duplicate issue. Closing

from scatterwebextension.

k26dr avatar k26dr commented on May 18, 2024

image

Server is working fine.

from scatterwebextension.

k26dr avatar k26dr commented on May 18, 2024

https://github.com/LibertyBlock/eos-voting/blob/master/main.js#L51

That's an example of how to connect. Replace URL with your desired one. HTTPS is supported by eosjs. I have used it before.

from scatterwebextension.

nsjames avatar nsjames commented on May 18, 2024

aabec88

from scatterwebextension.

Related Issues (20)

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.