问题描述
我正在按照建议行事,因为在 23 年 4 月 22 日的过去几天中,在应用程序执行的最后阶段运行 toit 时,经常会出现此错误作为免费添加。但从日志来看,该应用程序运行正常:
Cannot receive data from stream: rpc error: code = Internal desc = stream terminated by RST_STREAM with error code: INTERNAL_ERROR
Internal error.
If the issue persists please report it to https://stackoverflow.com/questions/tagged/toit
解决方法
我们的 API 对所有请求都有超时。所有长时间运行的请求都将被取消,因此经常会出现此错误。
如果您想在设备上长时间运行代码,您应该使用“toit deploy”。
自动取款机。我不记得确切的超时时间,但它在 120-300 秒的范围内。