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> 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.
    sorabot
    @sorabot
    [telegram] <Stepan> ERP is multi-platform, but 90% of the use under windows is the client part. Thank you. (re @♌︎ 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.)
    sorabot
    @sorabot
    [telegram] <Yoshihiro Fuji> Investing in a bitcoin mining company is the best way to get rid of financial problems. Guarantees 10% of your investment after 24 hours. Send me a direct message for more information, this is one of the best ways you can earn a second source of income by working from home and earn money daily with your smartphone or PC at this reputable company. send Dm or chat me private for more information
    sorabot
    @sorabot

    [telegram] <Stepan> The bug was fixed by updating the nearest parent package.json file with the following entry:
    {
    "type": "module",
    ...} (re @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? ...example for the client side is not the most successful and simple, where is the kaizen concept)
    it's simple: https://t.me/hyperledgeriroha/23128
    and it's not easy anymore:
    import grpc from 'grpc'
    import {
    QueryService_v1Client,
    CommandService_v1Client
    } from '../iroha-helpers/lib/proto/endpoint_grpc_pb'
    import { commands, queries } from 'iroha-helpers'

    const IROHA_ADDRESS = 'localhost:50051' ...)

    sorabot
    @sorabot
    [telegram] <Will> hi
    sorabot
    @sorabot
    [telegram] <Stepan> #gRPC #proto
    Hi. I did not find .proto files in the iroha-helpers package, but they are in the iroha c++ assembly itself, but again there are a lot of them. In which .proto are the services for port 50051 located?
    sorabot
    @sorabot
    [telegram] <Alexander> shared_model/endpoint.proto (re @Stepan: #gRPC #proto
    Hi. I did not find .proto files in the iroha-helpers package, but they are in the iroha c++ assembly itself, but again there are a lot of them. In which .proto are the services for port 50051 located?)
    sorabot
    @sorabot

    [telegram] <Stepan> do you think such an example of a client script in JS will take off? )
    ...
    var PROTO_PATH = __dirname + '/../../shared_model/endpoint.proto';
    var grpc = require('@grpc/grpc-js');
    var protoLoader = require('@grpc/proto-loader');
    var packageDefinition = protoLoader.loadSync(
    PROTO_PATH,
    {keepCase: true,
    longs: String,
    enums: String,
    defaults: true,
    oneofs: true
    });

    var CommandService_v1= grpc.loadPackageDefinition(packageDefinition).grpc.CommandService_v1;

    var commandService = new CommandService_v1(
    IROHA_ADDRESS,
    grpc.credentials.createInsecure()
    ) (re @Alexander: shared_model/endpoint.proto)

    sorabot
    @sorabot
    [telegram] <Sara> Sorry but you don't work with Iroha so I believe it might bot be the right place to post it here (re @Will: Hi. I am a professional developer who can handle tasks relative to blockchain.
    1. Solana smart contract development (Unit test, solana-program-library, Solana-web3, Raydium swap and orca) by using Rust and Anchor framework
      2.Cardano smart contract by using Haskell and CosmWasm smart contract by using Rust CosmWasm.
    2. Smart contract development in networks (Ethereum, BSC, Matic/Polygon) by using Solidity.
    3. Front-end development interactive with smart contract by using Web3, truffle, React(Redux / Thunk / Saga), Angular and Vue.
    4. ICO, IDO, Defi Swap, Reward system for staking, AOM(Olympus DAO Fork), Hyperledger Fabric
    5. NFT minting and NFT marketplace development(Create listing by admin, flat & Crypto payment, Bundle Sale/ Bulk Transfers, Drops, Rating, Bidding & Auction)
      -Minter in Candy machine and 10% royalty moved to burn and other wallets
      -Burn mechanism with kind of sharing rewards back to the holders
      -Minting by user randomly NFTs, Upload the NFT arts and Traits(metadata) to IPFS
      7.Bot development for sale monitoring bot OS and Niftygateway
    6. Cryto game development with crypto payment gateway
      Let's discuss your project together.
      Thanks.)
    sorabot
    @sorabot

    [telegram] <♌︎ Leo> Makes sense if u only need a few of the iroha APIs and don’t wish to add the iroha-helpers as a dependency. But, if u need a lot more APIs, then you run the of risk reinventing the whole iroha-helpers. (re @Stepan: do you think such an example of a client script in JS will take off? )
    ...
    var PROTO_PATH = __dirname + '/../../shared_model/endpoint.proto';
    var grpc = require('@grpc/grpc-js');
    var protoLoader = require('@grpc/proto-loader');
    var packageDefinition = protoLoader.loadSync(
    PROTO_PATH,
    {keepCase: true,
    longs: String,
    enums: String,
    defaults: true,
    oneofs: true
    });

    var CommandService_v1= grpc.loadPackageDefinition(packageDefinition).grpc.CommandService_v1;

    var commandService = new CommandService_v1(
    IROHA_ADDRESS,
    grpc.credentials.createInsecure()
    ))

    sorabot
    @sorabot
    [telegram] <Stepan> while experiments with JS are still stepping on the ES6 "rake" under windows and there is already an idea to go for C # gRPC .net, so we are trying to bring everything to the server as much as possible, including the iroha-helpers functions. (re @♌︎ Leo: Makes sense if u only need a few of the iroha APIs and don’t wish to add the iroha-helpers as a dependency. But, if u need a lot more APIs, then you run the of risk reinventing the whole iroha-helpers.)
    sorabot
    @sorabot

    [telegram] <Grouvie> Is Hyperledger Burrow still supported by Iroha or is it suggested to use other solutions to implement smart contract functionality?

    The Hyperledger Burrow Github states:
    "Hyperledger Burrow has been moved to End of Life status by the original project maintainers."