mute667 (@BigShark667) 在 华为云FunctionGraph认证实验踩坑分享 中发帖
步骤中用的函数模板过时了,需要把代码修改一下
替换handler函数,event中提取数据的方式变了:
def handler(event, context):
ak = context.getSecurityAccessKey()
sk = context.getSecuritySecretKey()
st = context.getSecurityToken()
if ak == "" or sk == "" or st == "":
context.getLogger().error('Failed to access OBS because no temporary '
'AK, SK, or token has been obtained. Please '
...