Not able connect to GRPC server with sample code (k6 version 0.35.0)

Hi,

I am trying out the GRPC sample script to connect to grpcbin.test.k6.io:9000 without TLS. However, I am getting context deadline exceeded while doing client.connect. (grpcbin.test.k6.io:9000 with TLS works fine)

Here is the script I use:

import grpc from 'k6/net/grpc';
import { check, sleep } from 'k6';

const client = new grpc.Client();

export default () => {
  client.connect('grpcbin.test.k6.io:9000', {
    plaintext: true,
    reflect:true,
    timeout:2000
  });

  const data = { greeting: 'Bert' };
  const response = client.invoke('hello.HelloService/SayHello', data);

  check(response, {
    'status is OK': (r) => r && r.status === grpc.StatusOK,
  });

  console.log(JSON.stringify(response.message));

  client.close();
  sleep(1);
};

The actual discussion is going in Not able to connect to GRPC server without TLS.