【发布时间】:2019-06-17 09:15:58
【问题描述】:
Xcode 版本:10.1 Firebase SDK 版本:6.0.0 Firebase 组件:Firebase/DynamicLinks 组件版本:4.0.0
嗨,我在处理动态链接时卡在一个点上,建立链接时一切都很好,但是我在链接上遇到了这样的错误
<ExceptionMessage>
The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8'.
</ExceptionMessage>
<InnerException>
<Message>An error has occurred.</Message>
<ExceptionMessage>
Object reference not set to an instance of an object.
</ExceptionMessage>
<ExceptionType>System.NullReferenceException</ExceptionType>
生成的链接https://marcoapp.page.link/T4Ye 在这里有问题。 我知道这是错误的,有人会说它来自后端,但以前没有相同的东西起作用,甚至 Android 级别的应用程序在相同的参数下仍然可以正常工作。而且我没有得到我发送或不发送导致此问题的错误信息。下面提到的是代码。
guard let components: DynamicLinkComponents = DynamicLinkComponents(link: urlLink, domainURIPrefix: "https://marcoapp.page.link") else {
return ""
}
在这里 urlLink = https://marcotest.azurewebsites.net/api/Groups/(Int)
【问题讨论】:
标签: ios swift firebase firebase-dynamic-links