Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant sync triggers when deploying Azure Function via VS code

I used terraform to create my function app, and then in VS code I create the sample app that they generate for you. When I try to deploy to vs code using the azure functions plugin I get the following output.

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.

How can I get more info on what causes this in vs code?

like image 550
JS noob Avatar asked Aug 15 '26 00:08

JS noob


1 Answers

In my case I solved it by reverting to python programming model v1 (as opposed to v2 - only available via API/CLI or VS Code extension) Tried clearing associated storage/cache, restarted the app service, created a new instance using paid plan, new functions etc... Certainly server side as the activity logs track the error, though no details.

like image 102
alpinedelight Avatar answered Aug 17 '26 14:08

alpinedelight



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!