-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server[pid=XXXX] is already being debugged #2530
Comments
I was able to make it work! The problem was that I was waitting for blob to enter I have updated the repository as an example, so I invite developers to test the activities below and testing whether both are correctly triggered. import azure.functions as func
import logging
app = func.FunctionApp()
@app.blob_trigger(arg_name="myblob", path="sample-workitems",
connection="4931ba_STORAGE")
def blob_triggered(myblob: func.InputStream):
# is triggered both for new blobs in `sample-workitems` and
# `sample-workitems/temp`
logging.info(f"Python blob trigger function processed blob"
f"Name: {myblob.name}"
f"Blob Size: {myblob.length} bytes")
@app.blob_trigger(arg_name="myblob", path="sample-workitems/temp",
connection="4931ba_STORAGE")
def temp_triggered(myblob: func.InputStream):
# is not triggered when a blob enters `sample-workitems/temp`
logging.info(f"Python blob trigger function processed blob"
f"Name: {myblob.name}"
f"Blob Size: {myblob.length} bytes") |
Thanks for raising this issue! If you need Azurite support, would you please Share the Azurite version, Azurite debug log, the expected Azurite behavior. |
Hi @blueww , I thought this would be the best place to raise this issue, but I sincerely do not know whether this is a problem with Azurite or some other component related to developing Azure Functions. The problem is that the trigger does not work when watching @app.blob_trigger(arg_name="myblob", path="sample-workitems",
connection="4931ba_STORAGE")
def blob_triggered(myblob: func.InputStream):
# is triggered both for new blobs in `sample-workitems` and
# `sample-workitems/temp`
...
@app.blob_trigger(arg_name="myblob", path="sample-workitems/temp",
connection="4931ba_STORAGE")
def temp_triggered(myblob: func.InputStream):
# is not triggered when a blob enters `sample-workitems/temp`
... Azurite version: VS Code extension 3.33.0
|
Not sure what's the blob_trigger called rest API. |
Environment data
OS and version: Windows 11
Python version (& distribution if applicable, e.g. Anaconda): Python 3.10.6 (conda-forge) [MSC v.1929 64 bit (AMD64)] on win32
Using VS Code or Visual Studio: VS Code, Azurite version 3.33
Behavior
Expected
@blob_trigger
to work, but receivedServer[pid=XXXX] is already being debugged
errorSteps to reproduce:
The related files are both in gist for easy reading, and in repository for reproduction.
Originally opened at microsoft/debugpy#1831
The text was updated successfully, but these errors were encountered: