Azure / Azure/azure-functions-core-tools
Make it more obvious 7071 is the default port
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
Debian 11 (Bullseye) installed via WSL2 (Win 11). I have a Python timer function I'm trying to test. func starts successfully and is listening on the port it shows. no errors. doing curl requests I get the below error and am not able to connect.
azurite and core tools installed via NPM.
`azurite --version` : 3.15.0
`func --version` : 4.0.3971
azurite started with: `azurite --silent --location ~/temp/azurite --debug ~/temp/azurite/debug.log`
no errors.
func started inside the python venv and it loads the function in question. `ss -ltp` shows the port listening.
`func start`:
```
Found Python version 3.9.2 (python3).
Azure Functions Core Tools
Core Tools Version: 4.0.3971 Commit hash: d0775d487c93ebd49e9c1166d5c3c01f3c76eaaf (64-bit)
Function Runtime Version: 4.0.1.16815
Functions:
DataExportToPowerBI: timerTrigger
For detailed output, run func with --verbose flag.
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/2 POST http://127.0.0.1:40257/AzureFunctionsRpcMessages.FunctionRpc/EventStream application/grpc -
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'gRPC - /AzureFunctionsRpcMessages.FunctionRpc/EventStream'
[2022-02-24T00:49:25.841Z] Worker process started and initialized.
[2022-02-24T00:49:30.392Z] Host lock lease acquired by instance ID '000000000000000000000000AEC7D6B0'.
```
I can `telnet` to the port and get a connection. So, I know the service is listening. running the curl command:
```
curl -H "Content-Type: application/json" -X POST -d '{"input":""}' http://127.0.0.1:40257/admin/functions/DataExportToPowerBI
```
fails with:
```
curl: (1) Received HTTP/0.9 when not allowed
```
All the docs I can find indicate nothing else is needed. Am I missing something? or is there a bug here?
https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Ccsharp%2Cportal%2Cbash#start
and various blogs is what I've been working off of. At the moment I'm more of the "hello world". the function does nothing more than print "hello" at this time, but runs if I call it via python3 .
Contributor guide
Research direction
Start with the linked local-run documentation and the `func start` output, then compare them with the curl request and port shown in the issue. Determine where the default HTTP port should be made explicit and verify that the resulting guidance clearly distinguishes it from the port currently used in the request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- cli
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100