文档开发者中心
我的
云开发 | Serverless

云开发服务帮助开发者统一构建和管理后端服务与云资源,提供计算、存储等Serverless化能力,以及端云一体化的开发框架和体验,支持高效构建HarmonyOS应用/元服务。

关注
订阅
推荐
最热
最新
其他
已解决
未解决
sdk版本,1.9.6.300, AGC云函数为手动从控制台创建,在控制台测试了没问题,sdk调用能看到拿到了token,但是调用云函数失败POST https://connect-dra.dbankcloud.cn/agc/apigw/wisefunction/functions/54jhx3nr/timebox-android-config<< HTTP 404 Not Found\X-Trace-Id: f6a1f26f-8b66-4903-909f-c9ac7655d646\Content-Type: application/json\\\{\    "code": 160404,\    "message": "Trigger not exist"\

评论4

浏览 100

发布于2026-10-04 06:50
给app的官网都托管到华为云开发的云托管了,其他官网没问题,都是同样的一套流程,项网这个App的官网就是不行,最开始是好的,就最近几天开始不行了,流量也没用超,实在是排查不出来了,求教。https://ruankao.xiaobingkj.com/沙箱访问也不行https://ruankao.xiaobingkj.com/sandbox/default/index.html全部是以下的403错误呢

评论9

浏览 432

发布于2026-06-15 01:12
已通过云函数获得微信openid和access_token,但无法创建认证服务用户,也没有任何错误提示。认证服务管理中已开启微信认证方式,并填写小程序AppId及AppSecret:代码如下: async signIn(jsCode) { wx.showLoading({ title: '正在登录', }) try { const res = await userApi.fetchWeappSignIn(jsCode) console.log(res) let token = res.data.token let openid = res.data.openid let result = await agconnect.auth.WeixinAuthProvider.credentialWithToken(token, openid, true) console.log(result) } catch (error) { wx.showToast({ title: '登录失败', }) console.log(error) } wx.hideLoading() },

评论5

浏览 970

发布于2024-08-06 05:02
想对接华为全屋智能北向开放接口,实现全屋智能家居控制功能,要怎么对接,怎么联系相关的技术支持人员。

评论2

浏览 2.4k

发布于2026-03-26 08:20
在AI推理场景中,新型数据基础设施需解决海量数据处理、低延迟响应、隐私安全等核心挑战。还有哪些核心挑战?

评论1

浏览 250

发布于2026-03-19 03:37
想把云函数的功能集成到云对象中,供vue的web端侧调用,但是好像只有web端调用云函数的文档,没看到调用云对象的文档,有大佬能指点迷津吗?

评论1

浏览 467

发布于2026-03-12 04:46
使用手机号发送验证码时,提示INVALID_PHONE,输入的手机号码不合法,错误码203817224

评论4

浏览 1k

发布于2022-04-14 03:14
我应用中一个反馈功能,是通过云函数把用户反馈的纯字符串内容插入到云数据库里的。但是最近在开发时发现提交的反馈内容操作失败,下面是错误内容。可能是Date类型的字段问题造成的。不知道是不是华为的云端数据库升级后没处理好造成的又或是是别的原因。{"code":-1,"name":"FunctionError","message":{"defaultName":"AGCError","name":"database-server","errorCode":{"code":"2081","message":"input number is overflow."}}}这是表的json结构:{ "objectTypeName": "t_feedback", "fields": [ {"fieldName": "id", "fieldType": "IntAutoIncrement", "notNull": true, "belongPrimaryKey": true}, {"fieldName": "uid", "fieldType": "String", "notNull": true, "defaultValue": ""}, {"fieldName": "content", "fieldType": "Text"}, {"fieldName": "reply", "fieldType": "Text"}, {"fieldName": "app_version", "fieldType": "String"}, {"fieldName": "sys_version", "fieldType": "String"}, {"fieldName": "device_name", "fieldType": "String"}, {"fieldName": "create_time", "fieldType": "Date"} ], "indexes": [ {"indexName": "id_idx", "indexList": [{"fieldName":"id","sortType":"ASC"}]} ], "permissions": [ {"role": "World", "rights": ["Read"]}, {"role": "Authenticated", "rights": ["Read", "Upsert"]}, {"role": "Creator", "rights": ["Read", "Upsert", "Delete"]}, {"role": "Administrator", "rights": ["Read", "Upsert", "Delete"]} ] }

评论2

浏览 303

发布于2026-02-25 09:25
SDK: 华为联机对战服务平台:小游戏(微信小游戏、抖音小游戏)错误:请求错误502

评论1

浏览 577

发布于2026-02-09 13:13
我的APP已经运行了一段时间了,之前都能正常运行,今天突然就不能使用了。会报错CloudDB query error: Query failed: code: 1000 message: connect to server failed.有没有大神知道是什么原因

评论6

浏览 561

发布于2026-02-05 04:07
import { cloudDatabase } from '@kit.CloudFoundationKit';import { Article } from '../models/Article';import { BusinessError } from '@kit.BasicServicesKit';@Entry@Componentexport struct TestPage { aboutToAppear() { this.testQuery(); // 页面加载时触发测试查询 } testQuery() { let databaseZone = cloudDatabase.zone('Hanmoshuyuan'); if (!databaseZone) { console.error('Database zone initialization failed.'); return; } } build() { Column() { Text('Testing Cloud Database Query...') .fontSize(20) .margin(20); } }}会在let databaseZone = cloudDatabase.zone('Hanmoshuyuan');这里报错报错信息为:Device info:emulatorBuild info:emulator 5.0.0.112(SP2DEVC00E112R4P11log)Fingerprint:c9795b1fd981c17103ba8f51a2c0dbfdc14a3cf1c7170129828f46d705c854dcModule name:com.cugb.hanmoshuyuanVersion:1.0.0VersionCode:1000000PreInstalled:NoForeground:YesPid:9966Uid:20020043Reason:TypeErrorError name:TypeErrorError message:Cannot read property zone of undefinedStacktrace:    at testQuery (entry/src/main/ets/pages/Second.ets:14:24)    at aboutToAppear (entry/src/main/ets/pages/Second.ets:10:5)

评论4

浏览 508

发布于2024-12-23 10:22
【问题描述】:从华为组件市场下载了政务模块,然后在cloud-config.json进行配置teamid时一直显示该错误,这该如何解决【问题现象】:【版本信息】:IDE版本6.0.2【复现代码】:无【尝试解决方案】:排查当前的工程里的关键配置文件 cloud-config.json 是否被修改了,这个文件是创建端云工程时产生的,里面有teamId等关键信息,与登录的账号匹配的。重新创建一个端云工程,对比一下这个文件

评论2

浏览 355

发布于2026-02-03 09:46
参考云函数调用文档:调用函数-自行构造HTTP请求调用函数-云函数 - 华为HarmonyOS开发者携带鉴权Token请求业务接口失败是什么原因按照文档中填写的路径也会失败触发器URL也只有相对路径,没有完整路径。

评论1

浏览 383

发布于2026-01-09 06:54
慢慢步进更年期,记录变化,或者其他慢性疾病记录,提醒吃药,喝水,休息的APP

评论2

浏览 269

发布于2025-12-19 14:48
用DevEco Studio NEXT Release创建了一个普通项目,然后加入了"@hw-agconnect/hmcore": "^1.0.2"这个依赖,调用了cloudFunction这个api,现在预览器日志里提示The system capacity of this api 'cloudFunction' is not supported on all devices[Compile Result] ArkTS:WARN File: C:/Users/lee/DevEcoStudioProjects/MyApplication/entry/src/main/ets/pages/Index.ets:20:25[Compile Result]  The system capacity of this api 'call' is not supported on all devices[Compile Result] ArkTS:WARN File: C:/Users/lee/DevEcoStudioProjects/MyApplication/entry/src/main/ets/pages/Index.ets:23:86[Compile Result]  The system capacity of this api 'result' is not supported on all devices没法成功调用云函数,请问是不是必须创建端云一体化项目才可以使用云函数

评论2

浏览 488

发布于2024-11-03 03:24
模拟器调用云存储 本地提示图片上传成功,但是云存储中没有参考官方文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/cloudfoundation-storage-upload-fileasync upload(localPath: string, cloudPath: string): Promise<string> { const fileName = localPath.split('/').pop() as string; const cacheFilePath = `${GlobalContext.getContext().cacheDir}/${fileName}`; this.copyFile(localPath, cacheFilePath); return new Promise((resolve, reject) => { storageBucket.uploadFile(GlobalContext.getContext(), { localPath: cacheFilePath, cloudPath: cloudPath, mode: request.agent.Mode.FOREGROUND }).then((task: request.agent.Task) => { task.on('progress', (progress) => { hiLogUtil.info(`进度,${JSON.stringify(progress)}`) }); task.on('response', (response) => { hiLogUtil.info(`响应,${JSON.stringify(response)}`) }); task.start((err: BusinessError) => { if (err) { hiLogUtil.error(`上传失败,${JSON.stringify(err.message)}`) reject(err); } else { hiLogUtil.info(`上传成功tid,${task.tid}`) this.getUrl(cloudPath).then(url => { resolve(url); }).catch((err:BusinessError) => { hiLogUtil.error(`获取下载链接失败,${JSON.stringify(err.message)}`) resolve(''); // 如果获取URL失败,返回空字符串 }); } }) }).catch((err: BusinessError) => { hiLogUtil.error(`上传失败,${JSON.stringify(err.message)}`) reject(err); }); }); }

评论3

浏览 381

发布于2025-12-19 03:37
这个最近发的:https://developer.huawei.com/consumer/cn/forum/topic/0202200227790571121?fid=0102822233052010012   这是几个月前发的:https://developer.huawei.com/consumer/cn/forum/topic/0204182778897069026?fid=0109140870620153026我就想试试端云一体化开发就这么难吗?  各种配置,一下子这个签名那个签名、这个这个设置那个设置。  你看看人家微信小程序的端云一体化 简单的一批,再看看你家的ε=(´ο`*)))唉!!!!!! 微信小程序端云一体化 从备案、产品、到发布我3个星期弄完    再看看你们的备案不行,好我自己买服务器、备案开始我开始开发APP,2个星期开发完。边开发边调试云函数。一直报错,查各种文档论坛,搞了一个星期 还是没解决,我也不知道哪里有问题了。 我都准备好了 就差调试云函数了,没问题就可以发布了。不管怎样我都是一如既往的支持你 

评论2

浏览 312

发布于2025-12-10 08:20
Failed to call the function, code: 1008210009, message: 0:create http task error.

评论7

浏览 650

发布于2025-12-04 02:49

评论1

浏览 382

发布于2024-11-21 14:08
定义错误export class ApiError extends Error { code: number error: string constructor(code: number, error: string = "") { super(`ApiError code:${code}, messag:${error}`) this.name = "ApiError" this.error = error this.code = code } toResult(language: string) { return { code: this.code, message: ApiError.message(this.code, language) } } static throw(code: number, message: string = ""): never { throw new ApiError(code, "业务异常 " + message) } }在业务处调用ApiError.throw抛出一个异常后,在handler入口catch主异常,下面代码e instanceof ApiError始终无法匹配上一直走else分支,什么情况export class ApiErrorHandler { static handler(path: string, language: string, env: string, callback, logger, e: Error) { if (e instanceof ApiError) { const message = e.toResult(language) logger.warn(`处理运行错误 path:${path}, code = ${e.code}, message = ${message}, error = ${e.error}`) callback(e.toResult(language)) } else { const result = { code: ApiError.Error_Unknown, message: ApiError.message(ApiError.Error_Unknown, language) } logger.error(`处理未知错误 path:${path}, error = ${e.message}, result:${JSON.stringify(result)}, stack:${e.stack}`) callback(result) } } }

评论3

浏览 404

发布于2025-12-02 10:25
有大佬会欧拉系统的无线网配置吗?

评论6

浏览 329

发布于2025-11-24 15:06
开发中发现云数据库满足不了数据库设计需求了怎么办呢,比如表之间连联系都不能设计。将来云数据库这个工具会不会向比较完善的DBMS功能方向发展??

评论0

浏览 223

发布于2025-11-15 10:51
鸿蒙ArkTS开发基本完成,目前ArkUI-X适配安卓中,认证服务短信验证码和登入都已成功,云存储异常,手机上有安装HMS Core但是也不行接入配置按照官网配的,认证服务正常说明配的大部分没错。以下是异常代码和异常日志:AGCStorageManagement.getInstance().getStorageReference(fileName).listAll();以下是项目配置:项目级build.gradlebuildscript { repositories { google() jcenter() maven { url 'https://developer.huawei.com/repo/' } } dependencies { classpath 'com.android.tools.build:gradle:8.0.1' //增加AGC插件配置 classpath 'com.huawei.agconnect:agcp:1.9.1.301' }}allprojects { repositories { google() jcenter() maven { url 'https://developer.huawei.com/repo/' } }}task clean(type: Delete) { delete rootProject.buildDir}项目级settings.gradlepluginManagement { repositories { gradlePluginPortal() google() mavenCentral() maven { url 'https://developer.huawei.com/repo/' } }}dependencyResolutionManagement { repositories { google() mavenCentral() maven { url 'https://developer.huawei.com/repo/' } }}include ':app'rootProject.name = 'APP'应用级build.gradleplugins { id 'com.android.application' id 'com.huawei.agconnect'}android { compileSdkVersion 33 buildToolsVersion "30.0.3" defaultConfig { applicationId "cn.fj.social" minSdkVersion 26 targetSdkVersion 33 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" ndk { abiFilters "arm64-v8a", "armeabi-v7a" } } buildTypes { release { signingConfig signingConfigs.debug minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } dynamicFeatures = [] sourceSets { main { jniLibs.srcDirs = ['libs'] } } namespace 'cn.fj.social'}dependencies { implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'com.huawei.hms:hwid:6.12.0.300' implementation 'com.huawei.hms:hwid-ohos:6.5.0.300' implementation 'com.huawei.agconnect:agconnect-core:1.9.1.301' implementation 'com.huawei.agconnect:agconnect-auth:1.9.1.301' implementation 'com.huawei.agconnect:agconnect-storage:1.9.1.301' implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation 'com.huawei.hms:hmscoreinstaller:6.12.0.300' testImplementation 'junit:junit:4.+' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'}

评论2

浏览 632

发布于2024-09-23 19:46

我要提问题

月度答复贡献榜
用户头像
橙动创意
回帖1k
粉丝64
关注
用户头像
Z
回帖911
粉丝14
关注
用户头像
蓝瘦的蜕变
回帖521
粉丝140
关注
用户头像
飞b6
回帖488
粉丝17
关注
用户头像
仙银
回帖483
粉丝105
关注
邀您回答
热门标签
1

HarmonyOS 5

2

HarmonyOS 6

3

DevEco Studio

4

UI

5

HarmonyOS

6

ArkUI (方舟UI框架)

7

HarmonyOS 7

8

App开发

9

软件开发

了解社区公约,与您携手共创和谐专业的开发者社区。
在 App 中查看