gcloud - Couldn't connect grpc client to the server - Stack Overflow

We have two servicesFirst one main-service which is created using node jsSecond one grpc service in py

We have two services

  1. First one main-service which is created using node js
  2. Second one grpc service in python

my grpc service

    port = os.environ.get('GRPC_PORT', '50051')
    server_address = f'[::]:{port}'

    server.add_insecure_port(server_address)
    server.start()

how I'm trying to connect the client

private constructor() {
        const emailServiceUrl = grpcConfig.agentsServiceURL
        log.i(`Email service URL: ${emailServiceUrl}`) // You can remove it later
        this.client = new emailsProto.EmailProcessingService(emailServiceUrl, grpc.credentials.createInsecure())
        log.i(`EmailProcessingClient initialized with service URL: ${emailServiceUrl}`)
    }

Deployed both to GCP but got this error

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744195462a4562635.html

相关推荐

  • gcloud - Couldn't connect grpc client to the server - Stack Overflow

    We have two servicesFirst one main-service which is created using node jsSecond one grpc service in py

    8天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信