vscode-azurefunctions icon indicating copy to clipboard operation
vscode-azurefunctions copied to clipboard

An error occurs when debugging a python V2 model project created with "EventGrid Trigger" template

Open v-xinda opened this issue 1 year ago • 4 comments

OS: Win10 Build Version: 20240704.1 Regression: Not a Regression

Repro Steps:

  1. Create a python V2 model project with "EventGrid Trigger" template.
  2. Debug the Project.
  3. Check whether no error occurs.

Expected: No error occurs.

Actual: An error occurs. image

More info:

  1. This issue also reproduces for Blob trigger/EventHub trigger template.
  2. This issue doesn't reproduce for HTTP trigger/Queue trigger/ServiceBus Queue trigger/Timer Trigger/ServiceBus Topic trigger template.
  3. This issue can be fixed if I fill the setting "AzureWebJobsStorage" manually. I think the root cause is that below prompt doesn't pop up when debugging the project. image So the setting "AzureWebJobsStorage" cannot be filled automatically.

v-xinda avatar Jul 04 '24 09:07 v-xinda

We are taking a look at the create experience and discussing the option of having a separate local vs remote setting.json to uncouple and more easily track these individual settings.

MicroFish91 avatar Jul 10 '24 18:07 MicroFish91

This issue also reproduces when debugging C#/Python project created with Event Hub trigger template. Image

This issue can be fixed after adding value for this "AzureWebJobsStorage" setting.

v-ruizh avatar Aug 15 '25 06:08 v-ruizh

I think there wasn't a requirement for storage accounts for http/timer/ and some other triggers which is probably why the prompt doesn't come up. I think we should just always make it a requirement now because I think the func cli needs the azurewebjobstorage setting.

nturinski avatar Aug 20 '25 17:08 nturinski

Investigation note: It's really odd, but debugging in python, I never even hit the preDebug verification code because resolveDebugConfiguration never gets called. This isn't reproducing for Javascript though so the debug providers or tasks must be different somehow.

nturinski avatar Aug 20 '25 18:08 nturinski