我正在测试 DeviceCheck,但我偶尔会遇到一个问题,即我没有收到来自 Apple 的正文、响应或错误值。我request
用来和他们交流。我试过使用request-promise
并切换到api.devicecheck.apple
而不是api.development.devicecheck.apple
,但都没有任何效果。我认为这与 wifi 网络的拥挤程度有关,但如果是这样,那就糟透了,因为即使拥挤,我的 wifi 也很棒。我想任何使用该应用程序的人很可能会遇到同样的问题。我能做些什么来得到任何回应,即使延迟了?一些例子如下:
8:36:28.500 PM
check
IncomingMessage
8:36:22.101 PM
check
Callback response
8:36:22.101 PM
check
{"bit0":true,"bit1":false,"last_update_time":"2018-09"}
8:36:21.901 PM
check
Callback body:
8:36:20.720 PM
check
Function execution took 14 ms, finished with status: 'ok'
8:36:20.713 PM
check
Function returned undefined, expected Promise or value
8:36:20.706 PM
check
Function execution started
4:37:55.435 PM
check
Function execution took 436 ms, finished with status: 'ok'
4:37:55.405 PM
check
Function returned undefined, expected Promise or value
4:37:55.001 PM
check
Function execution started
('check' 是云函数的名称)