简体   繁体   English

大量iOS SDK失败请求

[英]Countly iOS SDK fails request

I have added Count.ly iOS SDK to project, in didFinishLaunchingWithOptions I have added Count.ly initialisation as 我已将Count.ly iOS SDK添加到项目中,在didFinishLaunchingWithOptions中添加了Count.ly初始化为

        let config: CountlyConfig = CountlyConfig()
        config.appKey = "MY_APP_KEY"
        config.host = "https://try.count.ly/"
        config.enableDebug = true
        config.deviceID = CLYIDFV
        config.updateSessionPeriod = 300
        //You can specify optional features you want here
        config.features = [CLYCrashReporting, CLYAutoViewTracking]

        Countly.sharedInstance().start(with: config)

But in console it is giving error 但是在控制台中却给出了错误

[Countly] Request <0x170003290> failed! [计数]请求<0x170003290>失败!

And it is not showing anything on dashboard. 而且它没有在仪表板上显示任何内容。 My Account is on trial version enterprise edition. 我的帐户是试用版企业版。 Do I have to do any other configuration? 我还需要做其他配置吗?

Please make sure you do not add extra / at the end of host. 请确保您不要在主机末尾添加多余的/

config.host = "https://try.count.ly/"

should be 应该

config.host = "https://try.count.ly"

Disclaimer: I'm the SDK Developer 免责声明:我是SDK开发人员

(EDIT: incorrect host configurations like this one is now handled automatically on v17.05+) (编辑:现在,v17.05 +会自动处理这样的错误主机配置)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM