Segment.IO请求失败,状态为取消
问题描述:
我已按照此处的步骤操作:https://segment.io/libraries/analytics.js,但未偏离其说明。Segment.IO请求失败,状态为取消
这里是头从请求之一:
Request URL:http://api2.segment.io/v1/t
Request Headersview source
Content-Type:text/plain
Origin:http://staging.mywebsite.com
Referer:http://staging.mywebsite.com/
User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
Request Payloadview source
{userId:null, sessionId:ccea006ec74cc613, event:Loaded a Page,…}
apiKey: "eijofijoi4r"
callbackId: 350
context: {}
event: "Loaded a Page"
properties: {url:http://staging.mywebsite.com/, referrer:,…}
sessionId: "ccea006ec74cc613"
userId: null
无论是Preview
和Response
没有数据可用。其他属性值得一提:
Method: POST
Status: (cancelled)
Type: Pending
有什么可引起(cancelled)
状态的原因是什么?
我可以采取哪些措施来收集更多信息?
答
这可能是由于API不喜欢的属性内部的深层嵌套对象造成的。最后我检查了一下,我认为我们把最多可以嵌套7层的对象。
答
我也看到了这一点 - 事实证明,AdBlock扩展阻止了请求。