TestCafe Browserstack 每 80 秒左右无限尝试连接到 url,而不会失败

问题描述

我遇到了一个问题,即我们的 testcafe 测试有时会在 browserstack 中无限运行。当构建服务器达到 1 小时超时并结束构建时,它们最终会失败。

net::ERR_Failed

1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ - Failed to load resource: the server responded with a status of 502 (No data received from server or forwarder)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 502 (No data received from server or forwarder)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)
1623775255394:SEVERE:http://172.17.0.2:38363/browser/heartbeat/wxxxxQ  - Failed to load resource: the server responded with a status of 503 (Forwarding failure)

这些心跳消息似乎每 80 秒左右出现一次。有没有办法根据收到的上述错误快速使构建失败 - 我是否缺少一些配置或其他东西?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)