gpt4 book ai didi

azure - 通过 VS code 部署 Azure Function 时无法同步触发器

转载 作者:行者123 更新时间:2023-12-02 22:55:25 26 4
gpt4 key购买 nike

我使用 terraform 创建了我的函数应用程序,然后在 VS code 中创建了他们为您生成的示例应用程序。当我尝试使用 azure 函数插件部署到 VS Code 时,我得到以下输出。

6:04:05 PM test-trigger: Starting deployment...
6:04:26 PM test-trigger: Creating zip package...
6:04:26 PM test-trigger: Zip package size: 297 kB
6:04:28 PM test-trigger: Fetching changes.
6:04:44 PM test-trigger: Updating submodules.
6:04:45 PM test-trigger: Preparing deployment for commit id 'b4a19304-f'.
6:04:45 PM test-trigger: Skipping build. Project type: Run-From-Zip
6:04:46 PM test-trigger: Skipping post build. Project type: Run-From-Zip
6:04:46 PM test-trigger: Triggering recycle (preview mode disabled).
6:04:46 PM test-trigger: Updating /home/data/SitePackages/packagename.txt with deployment 20220428010427.zip
6:04:46 PM test-trigger: Deployment successful.
6:05:07 PM test-trigger: Syncing triggers...
6:05:52 PM test-trigger: Syncing triggers (Attempt 2/6)...
6:06:03 PM test-trigger: Syncing triggers (Attempt 3/6)...
6:06:24 PM test-trigger: Syncing triggers (Attempt 4/6)...
6:07:05 PM test-trigger: Syncing triggers (Attempt 5/6)...
6:08:27 PM test-trigger: Syncing triggers (Attempt 6/6)...
6:08:29 PM: Error: Encountered an error (InternalServerError) from host runtime.

如何获取有关 VS Code 中导致此问题的原因的更多信息?

最佳答案

就我而言,我通过恢复到 python 编程模型 v1 解决了这个问题(与 v2 相反 - 仅可通过 API/CLI 或 VS Code 扩展使用)尝试清除关联的存储/缓存,重新启动应用程序服务,使用付费计划创建新实例,新功能等...当然,服务器端的事件日志会跟踪错误,但没有详细信息。

关于azure - 通过 VS code 部署 Azure Function 时无法同步触发器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72036944/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com