未处理异常:[firebase_dynamic_links/unknown] com.google.android.gms.common.api.ApiException:400:DynamicLink 14793的长度超过了允许的限制7168。
[https://firebase.google.com/docs/dynamic-links/rest#create_a_short_link_from_parameters]
E/flutter (27743):
E/flutter (27743): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:581:7)
E/flutter (27743): #1 MethodChannel._invokeMethod
(package:flutter/src/services/platform_channel.dart:158:18)
E/flutter (27743): <asynchronous suspension>
E/flutter (27743): #2 MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:358:43)
E/flutter (27743): <asynchronous suspension>
E/flutter (27743): #3 MethodChannelFirebaseDynamicLinks.buildShortLink (package:firebase_dynamic_links_platform_interface/src/method_channel/method_channel_firebase_dynamic_links.dart:163:11)
E/flutter (27743): <asynchronous suspension>
E/flutter (27743): #4 createDynamicLinkForRachnaye (package:rachnaye_project/services/firebase_dynamic_links_service.dart:34:7)
E/flutter (27743): <asynchronous suspension>
E/flutter (27743):
E/flutter (27743): #0 MethodChannelFirebaseDynamicLinks.buildShortLink (package:firebase_dynamic_links_platform_interface/src/method_channel/method_channel_firebase_dynamic_links.dart:184:7)
E/flutter (27743): <asynchronous suspension>
E/flutter (27743): #1 createDynamicLinkForRachnaye (package:rachnaye_project/services/firebase_dynamic_links_service.dart:34:7)
正在生成短链接时获取问题
final ShortDynamicLink shortDynamicLink = await FirebaseDynamicLinks。instance.buildShortLink(参数);
任何机构如何解决这个问题?
1条答案
按热度按时间ef1yzkbh1#
由于发送到社交 meta参数中的多个文本,因此出现错误
在Firebase中,动态链接只允许7168的限制,但发送超过14k的字符,这是获得异常的原因。
bio字符串有太多的文本,这是获得异常400的原因。