在发出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有关系吗?我能做些什么?
发布于 2020-03-31 14:42:40
这通常是因为非常糟糕的互联网或π-漏洞(或类似的DNS拦截器)活动,并阻止正确查找api.segment.io (它返回0.0.0.0作为IP地址而不是实际地址)。
这没什么害处,但确实很烦人。
如果圆孔是罪魁祸首,至少有两种解决方案:
pihole -w api.segment.ioddev config global --instrumentation-opt-in=false发布于 2020-08-18 12:11:21
嗨,有一个稍微不同的错误信息:
segment 2020/08/17 09:39:08 ERROR: sending request - Post "https://api.segment.io/v1/batch": x509: certificate is valid for *.ddev.local, *.ddev.site, localhost, ddev-router, ddev-router.ddev_default, not api.segment.io
segment 2020/08/17 09:39:08 ERROR: 2 messages dropped because they failed to be sent and the client was closed但它也有同样的原因:pi洞阻塞了segment.io。我可以在圆孔日志(pihole -t)中找到被阻塞的请求。我发现域segment.io和segment.com在GitHub上的π孔默认块列表中。这个列表是自动生成的,segment.io条目来自adaway.org。好像是8个月前增加的台词。
就像在这个答案中描述的那样,它有助于在pi洞中白名单segment.io或禁用ddev中的报告功能。
https://stackoverflow.com/questions/60953312
复制相似问题