为什么API获取游戏存档功能的存档图片大小会报错?

Why does the API that obtains the archive image size for the saved game function report an error?

我开发了一款游戏APP,集成了华为游戏服务。但是,当我按照文档中的说明调用 API 获取存档图像大小时,返回了结果代码 7002。我无法定位故障。我能做什么? 相关日志信息如下:

Line 560: 2020-03-17 21:12:48.436 7644-17452/? I/ServerConstant: [I/HwJOS/ServerConstant 7644:25555 :108] get DRIVE serverUrl cost:4,isEmpty:false,isChina:false, Url:https://drive-drru.cloud.hicloud.com
Line 3567: 2020-03-17 21:12:48.600 7644-17452/? I/HMSGameArchiveRequest: [W/HwJOS/HMSGameArchiveRequest 7644:25558 :172] response not GetArchiveMetadataResponse.code: 7002
Line 3568: 2020-03-17 21:12:48.601 7644-17452/? I/HMSGameHelper: [I/HwJOS/HMSGameHelper 7644:25558 :92] reportInterfaceAccessStartBIEvent interfaceName: HMSGetArchiveMaxSizeRequest.getArchiveMaxSize duration: 0 result: 7002

补充问题:调用其他API华为游戏服务有什么注意事项吗?我也打算使用华为游戏服务的事件和成就功能。

Here 您可以找到游戏服务的错误代码列表。 7002是network error,意思是和华为服务器通信有问题。检查您的网络和代理设置。

错误码7002表示服务器异常。您需要确保您的服务地点与您注册华为帐号的地点一致。

只有服务位置与当前登录华为帐号注册位置相同的设备才能调用此API。要查看注册位置,请转到 帐户中心 > 设置 > 关于。要查看您的服务位置,请转到 AppGallery > > 设置 > Country/Region.

华为提供全套API供您快速实现多种游戏功能。详情请参考以下文件: Events, Achievements, Leaderboards, Saved games, Player status.