【发布时间】:2019-12-10 16:07:27
【问题描述】:
我不断得到:
flutter:捕获一般异常
flutter:异常:无法调用函数 helloWorld。
我一直在使用 cloud_functions 0.4.1
CloudFunctions cf = CloudFunctions(region: 'us-central1');
try {
HttpsCallable callable = cf.getHttpsCallable(
functionName: 'helloWorld',
);
dynamic resp = await callable.call();
print(resp);
} on CloudFunctionsException catch (e) {
print('caught firebase functions exception');
print(e.code);
print(e.message);
print(e.details);
} catch (e) {
print('caught generic exception');
print(e);
}
【问题讨论】:
-
您正在使用 HTTP 可调用函数。为什么不进行标准 REST 调用?
标签: flutter