Closed hyperion-journey closed 4 months ago
https://github.com/openfaas/docs/blame/ebc543451edc8c96ef678850df6239c44dd6fcd3/docs/languages/dockerfile.md#L73
(https://docs.openfaas.com/languages/dockerfile/#turn-a-cli-into-a-function):
curl -s http://127.0.0.1 -d "https://www.openfaas.com"
curl -s http://127.0.0.1:8080 -d "https://www.openfaas.com"
returns:
2024/07/09 17:28:26 Forking fprocess. 2024/07/09 17:28:26 Wrote 24 Bytes - Duration: 0.000927s
with CURLE_OK (0) error code returned
with CURLE_COULDNT_CONNECT (7) error code returned
FaaS-CLI version ( Full output from: faas-cli version ):
faas-cli version
CLI: commit: 3fd37fba2c4f6633f2d9b3b74d522877ed80e808 version: 0.16.30
Docker version docker version (e.g. Docker 17.0.05 ):
docker version
27.0.3
Are you using OpenFaaS on Kubernetes or faasd?
both
Operating System and version (e.g. Linux, Windows, MacOS):
Ubuntu 24.04 LTS under WSL2
Code example or link to GitHub repo or gist to reproduce problem:
/docs/languages/dockerfile.md line 73
Hi, we will get that updated. Thanks for the issue.
Fixed in: c6c91d7
Suspect missing port :8080 in URL
In section "Build and deploy the function" (Line 73)
https://github.com/openfaas/docs/blame/ebc543451edc8c96ef678850df6239c44dd6fcd3/docs/languages/dockerfile.md#L73
(https://docs.openfaas.com/languages/dockerfile/#turn-a-cli-into-a-function):
Currently reads:
Please consider changing curl command to include the port 8080 as indicated below:
Expected Behaviour
returns:
with CURLE_OK (0) error code returned
Current Behaviour
returns:
with CURLE_COULDNT_CONNECT (7) error code returned
Your Environment
FaaS-CLI version ( Full output from:
faas-cli version
):Docker version
docker version
(e.g. Docker 17.0.05 ):Are you using OpenFaaS on Kubernetes or faasd?
Operating System and version (e.g. Linux, Windows, MacOS):
Code example or link to GitHub repo or gist to reproduce problem:
/docs/languages/dockerfile.md line 73