Google Cloud PubSub / Datastore错误13和14:“收到GOAWAY”和“ TCP读/写失败”

时间:2018-09-05 14:31:38

标签: node.js google-cloud-platform google-cloud-datastore google-cloud-functions google-cloud-pubsub

抱歉,标题太长。使用Cloud Functions将数据从Cloud PubSub流式传输到Cloud Datastore时,会随机弹出一些问题(每隔几个小时,但不是有规律的时间,可能是3个小时到8个小时)。

Source是一个Node.js 6脚本,该脚本接收带有信息的HTTP帖子,写入PubSub主题,然后将该主题发布到Cloud Datastore。

它是此的修改版本: https://github.com/CiscoSE/serverless-cmx

错误:

这第一个有时是通过TCP Write而不是Read发生的,但这是相同的错误。

ERROR: { Error: 14 UNAVAILABLE: TCP Read failed
    at Object.exports.createStatusError (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/common.js:87:15)
    at Object.onReceiveStatus (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/client_interceptors.js:1188:28)
    at InterceptingListener._callNext (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/client_interceptors.js:564:42)
    at InterceptingListener.onReceiveStatus (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/client_interceptors.js:614:8)
    at callback (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/client_interceptors.js:841:24)
  code: 14,
  metadata: Metadata { _internal_repr: {} },
  details: 'TCP Read failed' }

并且:

ERROR: { Error: 13 INTERNAL: GOAWAY received
    at Object.exports.createStatusError (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/common.js:87:15)
    at Object.onReceiveStatus (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/client_interceptors.js:1188:28)
    at InterceptingListener._callNext (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/client_interceptors.js:564:42)
    at InterceptingListener.onReceiveStatus (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/client_interceptors.js:614:8)
    at callback (/user_code/node_modules/@google-cloud/datastore/node_modules/grpc/src/client_interceptors.js:841:24)
  code: 13,
  metadata: Metadata { _internal_repr: {} },
  details: 'GOAWAY received' }

1 个答案:

答案 0 :(得分:1)

other services似乎有一个类似的错误,解决方法只是重试。