我们一直在测试Google Healthcare API,特别是在HL7上,当我浏览教程的时候,我遇到了一个障碍。值得一提的是,我对Kubernetes和AWS有相当多的经验,但没有太多的Google Cloud。
下面这一步给我带来了麻烦:
当我尝试从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的类似问题?
发布于 2019-04-12 11:17:10
HL7v2存储的路径(在yaml,hl7_v2_location_id中)中的location id参数可能丢失或不正确;错误看起来像是从MLLP适配器对Cloud Healthcare API的请求引发的,而不是任何特定于GKE的请求。
发布于 2019-04-12 23:00:21
问题是我指定位置/区域的方式:
最初我的模板是这样的:
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"谢谢。
https://stackoverflow.com/questions/55638291
复制相似问题