kubernetes - GKE 上的 Google Healthcare API 与 PubSub - INVALID_ARGUMENT

标签 kubernetes google-kubernetes-engine google-cloud-pubsub hl7

我们一直在专门使用 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 集群和虚拟机位于同一区域/可用区。有人在 MLLP 适配器和 GKE 方面遇到过类似问题吗?

最佳答案

HL7v2 存储路径中的位置 id 参数(在 yaml 中,hl7_v2_location_id)可能丢失或不正确;该错误看起来像是 MLLP 适配器对 Cloud Healthcare API 的请求引发的,而不是 GKE 特有的任何错误。

关于kubernetes - GKE 上的 Google Healthcare API 与 PubSub - INVALID_ARGUMENT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55638291/

相关文章:

java - @ServiceActivator如何在Spring Boot中从属性文件读取inputChannel?

bash - Kubernetes 就绪性探测失败

reactjs - 有没有办法在Spring Boot和Kubernetes中运行react Application?

nginx - NGINX Ingress Controller 中的Stripprefix中间件

docker - k8s上的Dockerized Spring Boot应用程序几乎占用了所有可用内存

kubernetes - 连接拒绝到 Kubernetes 中的 GCP LoadBalancer

java - 在Dataflow中手动发送PubSub消息

google-kubernetes-engine - 谷歌容器引擎和 VPN

kubernetes - 与 K8S 服务或其底层端点的云内部 IP 的确定性连接?

go - 获取从 PubSub 事件触发的 Google Cloud Functions 的执行 ID