小编Anu*_*nth的帖子

Android Studio 中可用的所有评论标签是什么?

有人可以告诉 Android Studio 中可用的所有评论标签吗?

我现在只知道 2 个,即 TODO 和 FIXME .. 除了这些之外还有什么吗?

提前致谢

comments android-studio

4
推荐指数
1
解决办法
2591
查看次数

Firebase 函数抛出错误 com.google.firebase.functions.FirebaseFunctionsException:响应不是有效的 JSON 对象

我正在尝试调用 Firebase https 可调用函数,但在 Android Studio 中出现错误,提示“com.google.firebase.functions.FirebaseFunctionsException: Response is not valid JSON object”

这是我的代码

index.ts 文件

import * as functions from 'firebase-functions'
const admin = require('firebase-admin')
admin.initializeApp()


export { newUserSignUp } from './userCreated'
export { userDeleted } from './userDeleted'

//this is the function that the client is unable to call
exports.sendFeedback = functions.region('asia-east2').https.onCall((data, context) => {
if (!context.auth) {
  throw new functions.https.HttpsError(
    'unauthenticated', 
    'only authenticated users can add requests'
  )
}
if (data.text.length > 30) {
  throw new functions.https.HttpsError(
    'invalid-argument', …
Run Code Online (Sandbox Code Playgroud)

android kotlin firebase typescript google-cloud-functions

2
推荐指数
1
解决办法
897
查看次数