2017-05-31 48 views
0

我使用下面的命令时,上传我的函数的应用程序收到以下错误失败:Azure的功能上传与“任务被取消”

func azure functionapp publish FuncAppName 

我跑这从两者的功能应用的父目录和函数app目录本身,并得到相同的错误。它看起来像在一分钟左右上传超时一些任务:

Publish C:\Users\username\Documents\visual studio 2017\Projects\AzureFuncApp contents to an Azure Function App. Locally deleted files are not removed from destination. 
Getting site publishing info... 
Creating archive for current directory... 
Uploading archive... 
A task was canceled. 

任何想法如何解决这个问题/获得更多的调试信息?

有问题的功能已经存在于Portal上并正在运行。我以前能够成功上传它。

+0

您可以将env var'CLI_DEBUG'设置为'1',它将打印完整的堆栈跟踪。这个错误有多持久?最近有一个修复程序通过重试可能失败但尚未发布的http请求来提高发布命令的可靠性。 https://github.com/Azure/azure-functions-cli/commit/b2e05d267310d7003b975ab9d77428b1abe75465 – ahmelsayed

+0

你可以给这个建议尝试https://github.com/Azure/azure-functions-cli/issues/147 – ahmelsayed

回答