我在发出 ddev 命令时看到这样的错误:
segment 2020/03/31 11:30:15 ERROR: sending request - Post https://api.segment.io/v1/batch: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
segment 2020/03/31 11:30:15 ERROR: 2 messages dropped because they failed to be sent and the client was closed
重要吗?我该怎么办?
最佳答案
这通常是由于互联网非常糟糕或 pi-hole(或类似的 DNS 拦截器)处于事件状态并阻止正确查找 api.segment.io(它返回 0.0.0.0 作为 IP 地址而不是真实地址)的结果)
它没有害处,但确实很烦人。
如果 pi-hole 是罪魁祸首,至少有两种解决方案:
- pi-hole 中的白名单 api.segment.io;使用此命令:
pihole -w api.segment.io
- 告诉 ddev 不要通过段发送检测消息:
ddev config global --instrumentation-opt-in=false
关于ddev - 我在发出 ddev 命令时看到段错误(pi-hole?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60953312/