Deploy helper function… ✖ Generated custom domain (0.18s) ✖ Generated domain (1.54s)
你好,我新开始试用该功能,将flask的demo克隆到我们自己的仓库并提交,部署的时候走到这一步报错
2023-03-27 16:09:03 ERROR 224ee225-50f8-4ad3-b2de-f22c9fbce676 – getaddrinfo ENOTFOUND 1372404310680822.POST http://1372404310680822./%7B%7B%20region%20%7D%7D.fc.aliyuncs.com/2016-08-15/services failed., Error: getaddrinfo ENOTFOUND 1372404310680822. at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26), {“code”:101,”prefix”:”Project framework failed to execute:”}
2023-03-27 16:09:03 ERROR 224ee225-50f8-4ad3-b2de-f22c9fbce676 – Failed to deploy, errorMsg: getaddrinfo ENOTFOUND 1372404310680822.POST http://1372404310680822./%7B%7B%20region%20%7D%7D.fc.aliyuncs.com/2016-08-15/services failed.
2023-03-27 16:09:03 INFO 224ee225-50f8-4ad3-b2de-f22c9fbce676 – getaddrinfo ENOTFOUND 1372404310680822.POST http://1372404310680822./%7B%7B%20region%20%7D%7D.fc.aliyuncs.com/2016-08-15/services failed.
请问我需要执行什么才能完成这部署呢?
要不是部署的包有问题,就是相关的配置文件有问题,检查一下吧
http://1372404310680822./{{ region }}.fc.aliyuncs.com/2016-08-15/services
没设置region,s工具的提示有一些问题。
demo不能直接clone部署的,demo是个模板,需要填些参数才能生成正确的yaml文件。你可以直接通过控制台来创建新的仓库进行部署
https://fcnext.console.aliyun.com/applications/create?template=start-flask
此答案来自钉钉群“阿里函数计算官网客户”