Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    sorabot
    @sorabot
    [telegram] <exru> Iroha stared with docker and port is open
    [telegram] <exru> npm i iroha-helpers - installed normaly too
    [telegram] <exru> And connect to iroha with CLI working as needed
    [telegram] <Aleksandr> @iceseer we need your help here
    [telegram] <Sara> I've asked for some more specialised help (re @Aleksandr: @iceseer we need your help here)
    [telegram] <exru> Thanks a lot (re @Sara: I've asked for some more specialised help)
    sorabot
    @sorabot
    [telegram] <Sara> We might get a reply in stone time, unfortunately, they cannot check this right now. Maybe someone else would be able to help before that though (re @exru: Thanks a lot)
    [telegram] <exru> Oh, ok! I'll be wating
    [telegram] <Bogdan> Probably it's related to the remote repository accessibility or so. It also could be their side temporal issue. As a workaround to check that you may try using another connection or a VPN.
    UPD. Ah, yea, I see it's from /queries so you have installed the dependencies. In that case my suggestion is not applicable.
    [telegram] <Alexander> are you sure you try to establish connection from 127.0.0.1 ?
    you can try to change listenning address to 0.0.0.0:50051
    [telegram] <exru> I'll check for a minute (re @Alexander: are you sure you try to establish connection from 127.0.0.1 ?
    you can try to change listenning address to 0.0.0.0:50051)
    sorabot
    @sorabot
    [telegram] <exru> I tried to use 0.0.0.0:50051 but the same result (re @Alexander: are you sure you try to establish connection from 127.0.0.1 ?
    you can try to change listenning address to 0.0.0.0:50051)
    [telegram] <exru> Port is correct (re @exru: )

    [telegram] <exru> According to error logs the problem lays in /lib/queries/index.js:36:20

    at Timeout._onTimeout (/var/www/nhterminal/node_modules/iroha-helpers/lib/queries/index.js:36:20)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)

    sorabot
    @sorabot
    [telegram] <exru>
    sorabot
    @sorabot
    [telegram] <Lessie> 11 IYL
    sorabot
    @sorabot
    [telegram] <Lessie> 11 MPK
    sorabot
    @sorabot

    [telegram] <Sara> Hi! So, they checked the error - it is definitely a connection error, it's set up here in the code of the library (re @exru: According to error logs the problem lays in /lib/queries/index.js:36:20

    at Timeout._onTimeout (/var/www/nhterminal/node_modules/iroha-helpers/lib/queries/index.js:36:20)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7))

    [telegram] <Sara>
    sorabot
    @sorabot
    [telegram] <exru> Ok. Where is a problem? In the library or my server configuration?
    How to fix it? (re @Sara: )
    [telegram] <exru> What about this? (re @exru: )
    sorabot
    @sorabot
    [telegram] <Alexander> 1. check port redirection if client and iroha on different VM or in container
    1. try to establish connection with telnet(or nc).
    2. You can try to run iroha-cli or make telnet connection from the same VM where iroha is running to be sure that connection can be established
    3. check firewall options if it is used
    4. check packets are transferring from library to iroha with wireshark or smth similar
    sorabot
    @sorabot
    [telegram] <Stepan> Hi. What environment docker is used in? (re @exru: Due to Iroha docker the latest version)
    sorabot
    @sorabot
    [telegram] <Stepan> Hi all✋ If ERP support only HTTP/1.1, is it possible to translate an example in JS to VBS? required for gRPC HTTP/2.
    sorabot
    @sorabot
    [telegram] <♌︎ Leo> Maybe u should consider wrapping the iroha api as a web service and call from your client. Do note that the iroha JS library for browser doesn't support GRPC natively, you still need a GRPC proxy to bridge HTTP 1.1 to GRPC. (re @Stepan: Hi all✋ If ERP support only HTTP/1.1, is it possible to translate an example in JS to VBS? required for gRPC HTTP/2.)
    sorabot
    @sorabot
    [telegram] <Stepan> yes, this way was considered, but I would like to force ERP to run an external script for connect. (re @♌︎ Leo: Maybe u should consider wrapping the iroha api as a web service and call from your client. Do note that the iroha JS library for browser doesn't support GRPC natively, you still need a GRPC proxy to bridge HTTP 1.1 to GRPC.)
    sorabot
    @sorabot
    [telegram] <exru> ubuntu (re @Stepan: Hi. What environment docker is used in? (win, ubuntu or macOS))
    sorabot
    @sorabot
    [telegram] <Stepan> oh sorry, I'm not an expert on ubuntu, I use it via WSL (re @exru: ubuntu)
    sorabot
    @sorabot

    [telegram] <exru> I've used next code:

    npm install is-port-reachable

    import isPortReachable from 'is-port-reachable';

    console.log(await isPortReachable(50051, {host: 'localhost'}));

    result is true (re @Alexander: 1. check port redirection if client and iroha on different VM or in container

    1. try to establish connection with telnet(or nc).
    2. You can try to run iroha-cli or make telnet connection from the same VM where iroha is running to be sure that connection can be established
    3. check firewall options if it is used
    4. check packets are transferring from library to iroha with wireshark or smth similar)
    [telegram] <exru> nc -zv 127.0.0.1 50051 //success (re @Alexander: 1. check port redirection if client and iroha on different VM or in container
    1. try to establish connection with telnet(or nc).
    2. You can try to run iroha-cli or make telnet connection from the same VM where iroha is running to be sure that connection can be established
    3. check firewall options if it is used
    4. check packets are transferring from library to iroha with wireshark or smth similar)

    [telegram] <exru> exru@524889-cu15907:~$ telnet 127.0.0.1 50051
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.

    ▒@@ ?

    connected too (re @Alexander: 1. check port redirection if client and iroha on different VM or in container

    1. try to establish connection with telnet(or nc).
    2. You can try to run iroha-cli or make telnet connection from the same VM where iroha is running to be sure that connection can be established
    3. check firewall options if it is used
    4. check packets are transferring from library to iroha with wireshark or smth similar)
    sorabot
    @sorabot
    [telegram] <exru> And using CLI for iroha without any problems (re @Alexander: 1. check port redirection if client and iroha on different VM or in container
    1. try to establish connection with telnet(or nc).
    2. You can try to run iroha-cli or make telnet connection from the same VM where iroha is running to be sure that connection can be established
    3. check firewall options if it is used
    4. check packets are transferring from library to iroha with wireshark or smth similar)
    [telegram] <Alexander> ok, it seems problem in js lib
    [telegram] <exru> Can you provide more examples of node usage in documentation?
    sorabot
    @sorabot

    [telegram] <exru> According https://iroha.readthedocs.io/en/main/develop/libraries/javascript.html
    I start my script from console node script.mjs=========

    Maybe error is in here? How I would to start the script?

    But still:
    import isPortReachable from 'is-port-reachable';
    console.log(await isPortReachable(50051, {host: 'localhost'})); // ok

    [telegram] <exru> But still:
    import isPortReachable from 'is-port-reachable';
    console.log(await isPortReachable(50051, {host: 'localhost'})); // ok (re @exru: According https://iroha.readthedocs.io/en/main/develop/libraries/javascript.html

    I start my script from console node script.mjs

    Maby error is in here? How I would to start the script?)

    sorabot
    @sorabot

    [telegram] <Sara> Forwarded from Hyperledger Iroha news: 👀 Very late reminder: community meeting in 10 minutes!

    Just enough time to grab a cuppa and join us for Iroha updates: https://zoom.us/my/hyperledger.community.3
    Password: 475869

    sorabot
    @sorabot

    [telegram] <Sara> Forwarded from Hyperledger Iroha news: By the way, if you haven't read it yet, Iroha Team wrote a blogpost about Iroha 2 for Hyperledger: https://www.hyperledger.org/blog/2022/05/19/new-long-term-support-version-of-hyperledger-iroha-creates-on-ramp-for-v2-adoption

    Take a look to learn more about why and how we are creating Iroha 2!

    sorabot
    @sorabot
    [telegram] <♌︎ Leo> Which iroha js library are you using? In node.js you can connect to iroha via grpc, for browser js you must use a grpc proxy. (re @Alexander: ok, it seems problem in js lib)
    [telegram] <♌︎ Leo> Depending on whether you import from endpoint_grpc_pb or endpoint_pb_service.
    sorabot
    @sorabot
    [telegram] <Stepan> found a method how to make ERP run JS script.
    function main() {
    var client = new hello_proto.Greeter('localhost:50051',
    grpc.credentials.createInsecure());
    client.sayHello({name: 'you'}, function(err, response) {
    console.log('Greeting:', response.message);
    });
    } (re @Stepan: yes, this way was considered, but I would like to force ERP to run an external script for connect.)
    sorabot
    @sorabot
    [telegram] <Stepan> #gRPC
    Hello. next step for newbie✋ I deal with the installation of gRPC on a client machine with ERP under win10 and check if there is already an installation in ubuntu on the server side. for this, it was necessary to install node.js on Win10 in order for PowerShell to execute the npm install grpc command, and apparently, you also need to run spare parts from the npm i iroha-helpers framework.
    sorabot
    @sorabot

    [telegram] <SreeHari> Anyone interested in a paid freelance role as an SME for Hyperledger?
    It will be a short term assessment project.

    DM me for further follow ups

    sorabot
    @sorabot
    [telegram] <Chirag> Hello! I am Chirag Arora. I'm working as a Technical Recruiter at TechCurators (https://www.techcurators.in). We are an assessment-based company. We are looking for Hyperledger Subject Matter Experts.
    It is a one time paid-freelancer based project. If you are interested, kindly revert back with your contact details.
    Thank you.
    sorabot
    @sorabot
    [telegram] <Stepan> #gRPC #nodeJS
    Hi. JS script when executed gives an error on import grpc from ('grpc'); "SyntaxError: Cannot use import statement outside a module". how to fix?
    sorabot
    @sorabot
    [telegram] <♌︎ Leo> This is a JS issue not an iroha issue. import is ES6, normally you'll need to use a transpiler like babel/typescript to use ES6 features in node.js. the iroha example uses ts.
    [telegram] <Stepan> update ts.config?
    "target": "esnext",
    "module": "commonjs",
    ...where should it be located in win10? (re @♌︎ Leo: This is a JS issue not an iroha issue. import is ES6, normally you'll need to use a transpiler like babel/typescript to use ES6 features in node.js. the iroha example uses ts.)
    sorabot
    @sorabot
    [telegram] <♌︎ Leo> I suggest you clone the iroha javascript repo and look through the package.json. normally, normally settings like module type go into package.json which is in the top level directory of your project.
    sorabot
    @sorabot
    [telegram] <Stepan> editing package.json didn't work (there are many of them in the directories, maybe not the one), maybe npm install --save-dev @babel/core @babel/cli @babel/node @babel/preset-env ...I think I’ll figure it out myself, but if I write an article about integration with ERP, where everything is needed as fast as possible, I think I’ll throw tomatoes😂 (re @♌︎ Leo: I suggest you clone the iroha javascript repo and look through the package.json. normally, normally settings like module type go into package.json which is in the top level directory of your project.)
    sorabot
    @sorabot
    [telegram] <♌︎ Leo> If you want to use ES6 u need to setup babel for your project. Node js natively isn't ES6. The iroha javascript repo package.json listed the dependencies required to develop with ES6/TS. Good luck with your integration. maybe iroha is not suitable for you. Since you are on windows, maybe Azure Blockchain Service would be a better fit for you.