报错信息:UriFormatException: Invalid URI: The format of the URI could not be determined.
另:用的国际服,没有绑定域名
-
创建时间
19年12月30日
-
最后回复
19年12月30日
- 3
回复
- 301
浏览
- 2
用户
- 1
链接
报错信息:UriFormatException: Invalid URI: The format of the URI could not be determined.
另:用的国际服,没有绑定域名
public async void Init(AVUser user)
{
LeanCloud.Common.Logger.LogDelegate = (level, log) =>
{
switch (level)
{
case LogLevel.Debug:
Debug.LogFormat("[DEBUG] {0}", log);
break;
case LogLevel.Warn:
Debug.LogWarningFormat("[WARN] {0}", log);
break;
case LogLevel.Error:
LogHelper.Error("[ERROR] {0}", log);
break;
}
};
_client = new Client(Config.AppId, Config.AppKey, user.ObjectId);
await Connect();
}
private async Task Connect()
{
try
{
await _client.Connect();
LogHelper.Debug("Connect");
}
catch (PlayException e)
{
// 连接失败
LogHelper.Error("Connect failed, {0}, {1}", e.Code, e.Detail);
}
}非常感谢反馈
确认是连接时的 bug 并修复,请下载 新版 SDK