-
Notifications
You must be signed in to change notification settings - Fork 59
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
4-exercise-create-function-project steps fail, blocking issue in the learning module #31
Comments
Hi, @JvdH-NL! Thank you very much for your feedback. There was probably a mix-up. Probably between the branchs: I opened a Pull Request: HERE Thank you in advance for your feedback. Sincerely, Glaucia Lemos |
Hi, thanks for your very quick response!
After this I got this stack trace (I had wiped whole directory + redid all the steps): |
Try to make this.... make git clone (for you local machine) and try it out firstly this approach? If doesn't work, let's schedule a Pair. So I can understand what happened here. Do you have a Discord account? cc: @JvdH-NL |
Follow these steps: Create a
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "node",
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing",
"CONNECTION_STRING": "<PAST_YOUR_CONNECTION_STRING_HERE>"
},
"Host": {
"CORS": "*"
}
} |
Thanks for support. Instructions in Msft learn pages is not fully in sync with behaviour of code. I got most of it working, have to move along though. Thanks again. |
Thanks for the feedback! We are changing it according to your feedback so that it is in line with the audience's expectations. |
Hi there! I am adding my errors to this issue as I am experiencing the same problems as described by @JvdH-NL. I just wanted to add some observations that might help @glaucia86 to resolve this issue... When following the instructions to run the debugger in order to execute the Azure Functions locally I experience the same error messages as above:
Interestingly, when commenting out the "GetProducts" function that was added in step 4 of the exercise, the project does execute and following result is shown in the output of the debugger:
I have the impression that the project was committed to the main branch of the repository in some kind of intermediate state which causes exceptions to occur when we try to continue with the exercise and add the "GetProducts" function. I would be very grateful for some feedback on how to solve this, as I would really like to understand how to implement the serverless APIs on Azure! :) Edit: the code block without "GetProducts"
|
@skurscheid I ran into the exact same issue as you. Although a bit late, I'm gonna leave it here for others. In the app.http('GetProducts', {
methods: ['GET', 'POST'],
authLevel: 'anonymous',
handler: GetProducts
}); As you can see, it's the exact same as in the As a sidenote, in the excersice it shows using the specified route |
Would be good to know what to do when you get this message @glaucia86 : |
One possible solution to fix the issues:
Phew! |
Source: https://learn.microsoft.com/en-us/training/modules/build-api-azure-functions/4-exercise-create-function-project
Two blocking issues while going through this training module:
Step 5: can't create new project, GetProducts.ts already there.
Checked in source code online, file is indeed there.
Step 7: refering to existing file: src/index.ts
It is however not present (after clone, also checked online).
How should I be able to continue this training module?
The text was updated successfully, but these errors were encountered: