使用PubSub的GKE上的Google Healthcare API - INVALID_ARGUMENT

问题描述 投票:1回答:2

我们一直在测试专门针对HL7的Google Healthcare API,因为我已经完成了教程,我遇到了障碍。我应该提一下,我对Kubernetes和AWS有相当多的经验,但不是Google Cloud。

这一步是给我带来麻烦的:

https://cloud.google.com/healthcare/docs/how-tos/mllp-adapter#creating_a_compute_engine_vm_and_sending_messages

当我尝试从VM发送消息时,我没有看到响应,并且pod中的日志显示以下错误:

I0411 17:27:33.756432       1 healthapiclient.go:163] Dialing connection to https://healthcare.googleapis.com:443/v1beta1
I0411 17:27:58.809932       1 mllpreceiver.go:107] Accepted connection from 10.128.0.5:58698
I0411 17:27:58.810140       1 healthapiclient.go:182] Sending message of size 319.
E0411 17:27:58.880369       1 mllpreceiver.go:118] handleMessage: Send: request failed: 400
{
  "error": {
    "code": 400,
    "message": "location ID invalid, expected us-central1",
    "status": "INVALID_ARGUMENT"
  }
}
I0411 17:27:58.880691       1 mllpreceiver.go:119] Closed connection from 10.128.0.5:58698

此错误令人困惑,因为GKE集群和VM位于相同的区域/区域中。有没有人遇到类似MLLP适配器和GKE的问题?

kubernetes google-cloud-platform google-kubernetes-engine google-cloud-pubsub hl7
2个回答
3
投票

似乎HL7v2存储路径中的位置id参数(在yaml,hl7_v2_location_id中)可能缺失或不正确;错误看起来像是从MLLP适配器的请求提升到Cloud Healthcare API,而不是GKE的任何特定内容。


0
投票

问题是我指定位置/区域的方式:

最初我的模板是这样的:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: mllp-adapter-deployment
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: mllp-adapter
    spec:
      containers:
        - name: mllp-adapter
          imagePullPolicy: Always
          image: gcr.io/cloud-healthcare-containers/mllp-adapter
          ports:
            - containerPort: 2575
              protocol: TCP
              name: "port"
          command:
            - "/usr/mllp_adapter/mllp_adapter"
            - "--port=2575"
            - "--hl7_v2_project_id=XXXXXXXXXXXXX"
            - "--hl7_v2_location_id=us-central1-b"
            - "--hl7_v2_dataset_id=XXX-test-set"
            - "--hl7_v2_store_id=hlstore"
            - "--api_addr_prefix=https://healthcare.googleapis.com:443/v1beta1"
            - "--logtostderr"
            - "--receiver_ip=0.0.0.0"
            - "--pubsub_project_id=XXXXXXXX-api-dev"
            - "--pubsub_subscription=XX-incomingsub"

并且需要像这样指定location_id

- "--hl7_v2_location_id=us-central1"

谢谢。

© www.soinside.com 2019 - 2024. All rights reserved.