-
Notifications
You must be signed in to change notification settings - Fork 99
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
Unable to test Azure Function in Python locally #851
Comments
One thing to try is to delete your VS Code folder and regenerate it by running the Azure Functions Initialize project for VS Code command (I don’t recall the exact name right now. If you have your code in git, make a commit before trying this and you should see the difference, if any. @EricJizbaMSFT Do you have other suggestions to try? |
I believe that error is coming from the Python extension in VS Code. Can you check the version of that and upgrade to the latest if you're not already on it? |
Is this what you're referring to? I removed the Now when I try to debug, it runs provides me with the local URL's for the functions and fails with the following timeout issue,
I did check the version of the Python extension on VS Code and I am using v2020.6.91350, which seems to be the latest update @anthonychu @EricJizbaMSFT Thank you for the response guys, like I said the functions work fine in a fresh project. Unless you guys feel that this is a serious issue, I can go ahead and close it. |
still have no clue how to solve this issue! |
@FunnyBlue I just created a new Azure Function project in another directory, copied over the directories consisting just the Function related files from my previous project and ran the new project, It worked fine. Let me know if you want me to elaborate in detail |
I have the same problem. Have created multiple Azure Function projects, and using only the standard template, but get the same error... |
@ninamwa could you please share more information about the error you are getting? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
@ninamwa @Kashish053 Did you guys try this |
This may be an edge case, but I had the same issue because I swapped the F5 and Ctrl-F5 keys in my vscode preferences. Pressing Ctrl-F5 (Debugging) instead of F5 (Start without debugging) solved the issue. |
I have the same Issue, but just with "Starting without debugging". With debugging the Project runs just fine, but because of this I can't deploy it to the azure functions app. I suspect a error in the launch.json file myself, but I don't know what to put in instead of attach. I mean you probably put in "launch" in the request option, but I don't know what other options I need to put in, in order to get the projekt running in the same way. |
I'm having the same issue when working on WSL2. I tried the tutorial at https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python and when I start debugging with F5, I get the following error. |
+ @stefanushinardi @vrdmr @Hazhzeng for assistance. |
Hi @JonasBergholz and @paolosalvatori, thanks for raising this issue.
We want to distinguish if this is a VSCode bug or a Core Tools bug. |
Hi,
I didn't work with vscode, just the bot framework composer. I deleted the
bot and tool some time ago and moved on to other topics, so I can just help
you with what I still have in my memory and what I have written here. But
thank you all for the help and suggestions.
|
I have same issue. Starting via the command line with From VS Code I can Debug, but "Run Without Debugging":
I'm on MacOS with: |
I got the same issue, but it's not timeout like above situation and it still run the function. |
@Hazhzeng can you please take a look at this again? |
Is there any update here, same issue, functions runs fine but the error message keeps prompting. Using VS Code and Python v3.9 |
Any update? Thanks |
Is there any update about this error Visual Studio Code - Invalid message no debug is supported for attach. I'm also getting same error.. did many times re-installing and also tried Vs Code System setup as well as user setup but no change in that error. |
I confirm that Azure Tool Core V4 still got this error as well, quite annoying when I press Ctrl F5 as usual behavior |
I observed the strange behavior which is, When I run the .Net Stack azure functions with any trigger, it works perfectly in VS Code with any version of azure function core tools whereas If I run the other stack like Python, Javascript azure functions, it shows the many errors at every time |
Hi @zhenyuan0502, @HariKrishnaRajoli-MT - If you could share the repro-steps for the same? Also, could you update the {
"version": "2.0",
"logging": {
"logLevel": {"default": "Trace"}
}, ...
} I have not been able to repro it locally and would appreciate it if you have a live repro. Thanks. |
No new feedback from author |
I have an Azure Function written in Python which was working fine with Visual Studio Code. I was able to run it locally, test and even deploy to Azure. I checked it on the portal and the function is running fine for quite some time now.But after updating the Azure Function core tools version to 3, I'm getting this message when I run it locally
Invalid Message: "noDebug" is not supported for attach
and gave me the options to "Open launch.json" or "Cancel".
I did check my launch.json file and I didn't make any changes, here is the content of the file
EDIT: I downgraded Azure Function core tools to 2.0 and the issue still exists. Is it something related to VS Code?
I did try creating a fresh Azure Function project using VS Code and copied all the functions to the new project and it worked. But the old project still has the issue.
If someone wants to still take a shot at it, I'll be more than happy to provide any information
The text was updated successfully, but these errors were encountered: